Open KatGarmash opened 4 years ago
Also, it detects the P21 here:
private static final class Group extends Component {
private final Map<String, Object> nameToMBeanMap;
Group(String objectNameBase, List<String> objectNames,
List<? extends PlatformManagedObject> implementations,
Set<Class<?>> interfaceTypes) {
int beanCount = implementations.size();
Map<String, Object> beanMap = new HashMap<>(beanCount);
String namePrefix = objectNameBase.concat(",name="); //$NON-NLS-1$
for (int i = 0; i < beanCount; ++i) {
String objectName = namePrefix.concat(objectNames.get(i));
PlatformManagedObject implementation = implementations.get(i);
beanMap.put(objectName, implementation);
}
Aibolit detects P21 in lines 6,7,8, but it should not, since becase the only preceding expression in super invocation.