hudson.plugins.pmd
Class WarningDifferencer

java.lang.Object
  extended by hudson.plugins.pmd.WarningDifferencer

public final class WarningDifferencer
extends java.lang.Object

Provides several utility methods based on sets of warnings.


Method Summary
static java.util.Set<FileAnnotation> getFixedWarnings(java.util.Collection<FileAnnotation> actual, java.util.Collection<FileAnnotation> previous)
          Returns the fixed warnings, i.e., the warnings that are in the previous build but not in the actial.
static java.util.Set<FileAnnotation> getNewWarnings(java.util.Collection<FileAnnotation> actual, java.util.Collection<FileAnnotation> previous)
          Returns the new warnings, i.e., the warnings that are in the actual build but not in the previous.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNewWarnings

public static java.util.Set<FileAnnotation> getNewWarnings(java.util.Collection<FileAnnotation> actual,
                                                           java.util.Collection<FileAnnotation> previous)
Returns the new warnings, i.e., the warnings that are in the actual build but not in the previous.

Parameters:
actual - warnings in actual build
previous - warnings in previous build
Returns:
the new warnings

getFixedWarnings

public static java.util.Set<FileAnnotation> getFixedWarnings(java.util.Collection<FileAnnotation> actual,
                                                             java.util.Collection<FileAnnotation> previous)
Returns the fixed warnings, i.e., the warnings that are in the previous build but not in the actial.

Parameters:
actual - warnings in actual build
previous - warnings in previous build
Returns:
the new warnings


Copyright © 2008. All Rights Reserved.