/** * Updates the annotation drill-down mappings (priority, packages, files) with the specified annotation. * * @param annotation the new annotation */ private void updateMappings(final FileAnnotation annotation) { annotationsByPriority.get(annotation.getPriority()).add(annotation); if (StringUtils.isNotBlank(annotation.getCategory())) { addCategory(annotation); } if (StringUtils.isNotBlank(annotation.getType())) { addType(annotation); } if (hierarchy == Hierarchy.PROJECT) { addModule(annotation); } if (hierarchy == Hierarchy.PROJECT || hierarchy == Hierarchy.MODULE) { addPackage(annotation); } if (hierarchy == Hierarchy.PROJECT || hierarchy == Hierarchy.MODULE || hierarchy == Hierarchy.PACKAGE) { addFile(annotation); } }
/** * Updates the annotation drill-down mappings (priority, packages, files) with the specified annotation. * * @param annotation the new annotation */ @SuppressWarnings("SF_SWITCH_FALLTHROUGH") @java.lang.SuppressWarnings("fallthrough") private void updateMappings(final FileAnnotation annotation) { annotationsByPriority.get(annotation.getPriority()).add(annotation); if (StringUtils.isNotBlank(annotation.getCategory())) { addCategory(annotation); } if (StringUtils.isNotBlank(annotation.getType())) { addType(annotation); } if (hierarchy == Hierarchy.PROJECT) { addModule(annotation); } if (hierarchy == Hierarchy.PROJECT || hierarchy == Hierarchy.MODULE) { addPackage(annotation); } if (hierarchy == Hierarchy.PROJECT || hierarchy == Hierarchy.MODULE || hierarchy == Hierarchy.PACKAGE) { addFile(annotation); } if (hierarchy == Hierarchy.PROJECT || hierarchy == Hierarchy.MODULE || hierarchy == Hierarchy.PACKAGE || hierarchy == Hierarchy.FILE) { addAuthorName(annotation); } }