private boolean identifiableCollection(TypeRef type, boolean intface, boolean topLevel) { try { Clazz clazz = analyzer.findClass(type); if (clazz != null && (!topLevel || !clazz.isAbstract()) && ((intface && clazz.isInterface()) ^ clazz.hasPublicNoArgsConstructor())) { TypeRef[] intfs = clazz.getInterfaces(); if (intfs != null) { for (TypeRef intf : intfs) { if (COLLECTION.matcher(intf.getFQN()) .matches() || identifiableCollection(intf, true, false)) { return true; } } } TypeRef ext = clazz.getSuper(); return ext != null && identifiableCollection(ext, false, false); } } catch (Exception e) { return false; } return false; }
private boolean identifiableCollection(TypeRef type, boolean intface, boolean topLevel) { try { Clazz clazz = analyzer.findClass(type); if (clazz != null && (!topLevel || !clazz.isAbstract()) && ((intface && clazz.isInterface()) ^ clazz.hasPublicNoArgsConstructor())) { TypeRef[] intfs = clazz.getInterfaces(); if (intfs != null) { for (TypeRef intf : intfs) { if (COLLECTION.matcher(intf.getFQN()) .matches() || identifiableCollection(intf, true, false)) { return true; } } } TypeRef ext = clazz.getSuper(); return ext != null && identifiableCollection(ext, false, false); } } catch (Exception e) { return false; } return false; }
ActivatorErrorType.NOT_PUBLIC); if (!activatorClazz.hasPublicNoArgsConstructor()) { registerActivatorErrorLocation(error( "Bundle Activator classes must have a public zero-argument constructor and %s does not.",
ActivatorErrorType.NOT_PUBLIC); if (!activatorClazz.hasPublicNoArgsConstructor()) { registerActivatorErrorLocation(error( "Bundle Activator classes must have a public zero-argument constructor and %s does not.",
bactivator + " is not."), bactivator, ActivatorErrorType.NOT_PUBLIC); if(!activatorClazz.hasPublicNoArgsConstructor()) { registerActivatorErrorLocation(error("Bundle Activator classes must have a public zero-argument constructor and " + bactivator + " does not."), bactivator, ActivatorErrorType.NO_SUITABLE_CONSTRUCTOR);
bactivator + " is not."), bactivator, ActivatorErrorType.NOT_PUBLIC); if(!activatorClazz.hasPublicNoArgsConstructor()) { registerActivatorErrorLocation(error("Bundle Activator classes must have a public zero-argument constructor and " + bactivator + " does not."), bactivator, ActivatorErrorType.NO_SUITABLE_CONSTRUCTOR);