This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
List<J2MEPlatform.J2MEProfile> official = new ArrayList<J2MEPlatform.J2MEProfile>();
for(J2MEPlatform.J2MEProfile p : jars) {
if(!p.getType().equalsIgnoreCase("profile") ||
( (profileName != null) && (p.getName().startsWith(profileName)) )
profileName == null || p.getName().startsWith(profileName)
) {
official.add(p);
}