forked from organicmaps/organicmaps
[android] Refactored getRawTypes method in MapObject
This commit is contained in:
parent
c65504afe0
commit
085c4323a5
1 changed files with 4 additions and 6 deletions
|
@ -367,13 +367,11 @@ public class MapObject implements Parcelable, PopularityProvider
|
|||
@NonNull
|
||||
public String[] getRawTypes()
|
||||
{
|
||||
String[] types = new String[0];
|
||||
if (mRawTypes != null)
|
||||
{
|
||||
types = new String[mRawTypes.size()];
|
||||
mRawTypes.toArray(types);
|
||||
}
|
||||
if (mRawTypes == null)
|
||||
return new String[0];
|
||||
|
||||
String[] types = new String[mRawTypes.size()];
|
||||
mRawTypes.toArray(types);
|
||||
return types;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue