/** * Returns the annotations with {@link Priority#HIGH}. * * @return the annotations with {@link Priority#HIGH} */ public final Set<FileAnnotation> getHighAnnotations() { return getAnnotations(Priority.HIGH); }
/** * Returns the annotations with {@link Priority#NORMAL}. * * @return the annotations with {@link Priority#NORMAL} */ public final Set<FileAnnotation> getNormalAnnotations() { return getAnnotations(Priority.NORMAL); }
/** * Returns the annotations with {@link Priority#HIGH}. * * @return the annotations with {@link Priority#HIGH} */ public final Set<FileAnnotation> getHighAnnotations() { return getAnnotations(Priority.HIGH); }
/** * Returns the annotations with {@link Priority#LOW}. * * @return the annotations with {@link Priority#LOW} */ public final Set<FileAnnotation> getLowAnnotations() { return getAnnotations(Priority.LOW); }
/** * Returns the annotations with {@link Priority#NORMAL}. * * @return the annotations with {@link Priority#NORMAL} */ public final Set<FileAnnotation> getNormalAnnotations() { return getAnnotations(Priority.NORMAL); }
/** * Returns the annotations with {@link Priority#LOW}. * * @return the annotations with {@link Priority#LOW} */ public final Set<FileAnnotation> getLowAnnotations() { return getAnnotations(Priority.LOW); }
@Override public final Set<FileAnnotation> getAnnotations(final String priority) { return getAnnotations(getPriority(priority)); }
@Override public Set<FileAnnotation> getAnnotations(final String priority) { return getContainer().getAnnotations(priority); }
/** {@inheritDoc} */ public final Set<FileAnnotation> getAnnotations(final String priority) { return getAnnotations(getPriority(priority)); }
/** {@inheritDoc} */ public Set<FileAnnotation> getAnnotations(final String priority) { return getContainer().getAnnotations(priority); }
@Override public Set<FileAnnotation> getAnnotations(final Priority priority) { return getContainer().getAnnotations(priority); }
/** {@inheritDoc} */ public Set<FileAnnotation> getAnnotations(final Priority priority) { return getContainer().getAnnotations(priority); }
/** {@inheritDoc} */ @Exported(name = "warnings") public Set<FileAnnotation> getAnnotations() { return getContainer().getAnnotations(); }
@Override @Exported(name = "warnings") public Set<FileAnnotation> getAnnotations() { return getContainer().getAnnotations(); }
/** * Rebuilds the priorities and files after deserialization. */ protected void rebuildMappings() { initialize(); for (FileAnnotation annotation : getAnnotations()) { updateMappings(annotation); } }
/** * Rebuilds the priorities and files after deserialization. */ protected void rebuildMappings() { initialize(); for (FileAnnotation annotation : getAnnotations()) { updateMappings(annotation); } }
/** * Returns the fixed warnings as a difference between the warnings of the * reference build and the specified collection of warnings. * * @param annotations * the warnings in the current build * @return the difference "reference build" - "current build" */ public Collection<FileAnnotation> getFixedWarnings(final Set<FileAnnotation> annotations) { if (hasReferenceResult()) { return AnnotationDifferencer.getFixedAnnotations(annotations, getReferenceAnnotations().getAnnotations()); } else { return Collections.emptyList(); } }
/** * Returns the new warnings as a difference between the specified collection * of warnings and the warnings of the reference build. * * @param annotations * the warnings in the current build * @return the difference "current build" - "reference build" */ public Collection<FileAnnotation> getNewWarnings(final Set<FileAnnotation> annotations) { if (hasReferenceResult()) { return AnnotationDifferencer.getNewAnnotations(annotations, getReferenceAnnotations().getAnnotations()); } else { return annotations; } }
/** * Returns the fixed warnings as a difference between the warnings of the * reference build and the specified collection of warnings. * * @param annotations * the warnings in the current build * @return the difference "reference build" - "current build" */ public Collection<FileAnnotation> getFixedWarnings(final Set<FileAnnotation> annotations) { if (hasReferenceResult()) { return new IssueDifference(annotations, getReferenceAnnotations().getAnnotations()).getFixedIssues(); } else { return Collections.emptyList(); } }
/** * Returns the new warnings as a difference between the specified collection * of warnings and the warnings of the reference build. * * @param annotations * the warnings in the current build * @return the difference "current build" - "reference build" */ public Collection<FileAnnotation> getNewWarnings(final Set<FileAnnotation> annotations) { if (hasReferenceResult()) { return new IssueDifference(annotations, getReferenceAnnotations().getAnnotations()).getNewIssues(); } else { return annotations; } }