gps = fr == null ? null : fr.getDisplayedFeatureGroups();
if (typ != null)
{
- ArrayList types = new ArrayList();
- for (int i = 0; i < typ.length; i++)
+ List<String> types = new ArrayList<String>();
+ for (String displayed : typ)
{
- if (typ[i] != null)
+ if (displayed != null)
{
- types.add(typ[i]);
+ types.add(displayed);
}
- typ = new String[types.size()];
- types.toArray(typ);
}
+ typ = new String[types.size()];
+ types.toArray(typ);
}
if (gps != null)
{
- ArrayList grps = new ArrayList();
+ List<String> grps = new ArrayList<String>();
for (int i = 0; i < gps.length; i++)
{