forked from organicmaps/organicmaps
[android] Fixed review notes
This commit is contained in:
parent
e0eecf1c6b
commit
785a54acc1
1 changed files with 2 additions and 2 deletions
|
@ -10,8 +10,8 @@ public enum Popularity
|
|||
@NonNull
|
||||
public static Popularity makeInstance(int index)
|
||||
{
|
||||
if (index >= Popularity.values().length)
|
||||
return Popularity.NOT_POPULAR;
|
||||
if (index < 0 || index >= Popularity.values().length)
|
||||
throw new AssertionError("Not found enum value for index = " + index);
|
||||
|
||||
return Popularity.values()[index];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue