[android] Refactored getRawTypes method in MapObject

This commit is contained in:
Александр Зацепин 2019-09-12 14:33:47 +03:00 committed by yoksnod
parent c65504afe0
commit 085c4323a5

View file

@ -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;
}