Package proguard.classfile.util
Class WarningLogger
- java.lang.Object
-
- proguard.classfile.util.WarningPrinter
-
- proguard.classfile.util.WarningLogger
-
public class WarningLogger extends WarningPrinter
-
-
Constructor Summary
Constructors Constructor Description WarningLogger(org.apache.logging.log4j.Logger logger)
WarningLogger(org.apache.logging.log4j.Logger logger, java.util.List<java.lang.String> classFilter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getWarningCount()
Returns the number of warnings printed so far.void
note(java.lang.String className, java.lang.String message)
Prints out the given note without incrementing the warning count, if the given class name passes the class name filter.void
note(java.lang.String className, java.lang.String className2, java.lang.String message)
Prints out the given note without incrementing the warning count, if the given class nams pass the class name filter.void
print(java.lang.String className, java.lang.String message)
Prints out the given warning and increments the warning count, if the given class name passes the class name filter.void
print(java.lang.String className, java.lang.String className2, java.lang.String message)
Prints out the given warning and increments the warning count, if the given class names pass the class name filter.-
Methods inherited from class proguard.classfile.util.WarningPrinter
accepts, accepts
-
-
-
-
Method Detail
-
getWarningCount
public int getWarningCount()
Description copied from class:WarningPrinter
Returns the number of warnings printed so far.- Overrides:
getWarningCount
in classWarningPrinter
-
print
public void print(java.lang.String className, java.lang.String message)
Description copied from class:WarningPrinter
Prints out the given warning and increments the warning count, if the given class name passes the class name filter.- Overrides:
print
in classWarningPrinter
-
print
public void print(java.lang.String className, java.lang.String className2, java.lang.String message)
Description copied from class:WarningPrinter
Prints out the given warning and increments the warning count, if the given class names pass the class name filter.- Overrides:
print
in classWarningPrinter
-
note
public void note(java.lang.String className, java.lang.String message)
Description copied from class:WarningPrinter
Prints out the given note without incrementing the warning count, if the given class name passes the class name filter.- Overrides:
note
in classWarningPrinter
-
note
public void note(java.lang.String className, java.lang.String className2, java.lang.String message)
Description copied from class:WarningPrinter
Prints out the given note without incrementing the warning count, if the given class nams pass the class name filter.- Overrides:
note
in classWarningPrinter
-
-