public abstract class AbstractDiffReporter
extends java.lang.Object
Constructor and Description |
---|
AbstractDiffReporter(ApiDiffDispatcher dispatcher) |
Modifier and Type | Method and Description |
---|---|
protected ApiDiffDispatcher |
getApiDiffDispatcher() |
protected Severity |
getSeverity(JavaType clazz,
Field field,
Severity sev)
Determine whether the severity of the problem should be reduced
to INFO because:
the specified field is package or private accessibility, or
the specified field is in a package or private class.
|
protected Severity |
getSeverity(JavaType clazz,
Method method,
Severity sev)
Determine whether the severity of the problem should be reduced
to INFO because:
the specified method is package or private accessibility, or
the specified method is in a package or private class.
|
protected Severity |
getSeverity(JavaType clazz,
Severity sev)
Determine whether the severity of the problem should be reduced
to INFO because the specified class is package or private accessibility.
|
protected void |
log(Message msg,
Severity severity,
java.lang.String clazz,
Method method,
Field field,
java.lang.String[] args) |
public AbstractDiffReporter(ApiDiffDispatcher dispatcher)
protected final ApiDiffDispatcher getApiDiffDispatcher()
protected final void log(Message msg, Severity severity, java.lang.String clazz, Method method, Field field, java.lang.String[] args)
protected final Severity getSeverity(JavaType clazz, Severity sev)
Note that the class passed here should always be from the old class version, because we're checking whether existing code would have been able to access it (potential compatibility problems) or not.
clazz
- is the class the change is being reported about.sev
- is the severity that should be reported for public/protected
scoped classes.protected final Severity getSeverity(JavaType clazz, Method method, Severity sev)
Clirr reports changes at level INFO for all private and package scoped objects.
Note that the method passed here should always be from the old class version, because we're checking whether existing code would have been able to access it (potential compatibility problems) or not.
clazz
- is the class containing the method of interestmethod
- is the method the change is being reported about.sev
- is the severity that should be reported for public/protected
scoped methods.protected final Severity getSeverity(JavaType clazz, Field field, Severity sev)
Clirr reports changes at level INFO for all private and package scoped objects.
Note that the field passed here should always be from the old class version, because we're checking whether existing code would have been able to access it (potential compatibility problems) or not.
clazz
- is the class containing the method of interestfield
- is the field the change is being reported about.sev
- is the severity that should be reported for public/protected
scoped field.Copyright © 2003-2012 Lars K??hne. All Rights Reserved.