Package eu.bandm.tools.util3
Class ApiDocWarningsFilter
java.lang.Object
eu.bandm.tools.util3.ApiDocWarningsFilter
Takes the output protocol of javadoc and
filters, counts, and re-arranges the warning messages.
Because a larger project as metatools can have 40_000 warnings,
the warnings of the most important categories are extracted
and presented as a survey.
Storing and presenting is as follows:
"warning:noMainDescription"\
V
"warning:noComment" ----> methodTextMissing --> methodTextMissingByPackage
"warning: no @param" --> detailTextMissing --> detailTextMissingByPackage
"warning: no @throws" ----^ ^ ^
"warning: no @return" --/ / /
"warning: no description for " / /
/
"warning: use of default constructor"---> defaultConstructor
-
Field Summary
FieldsModifier and TypeFieldDescriptionIncludes the "defaultConstructor" warnings.(package private) LineNumberReaderstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) StringextractFilename(String line) (package private) StringextractPackage(String line) static void(package private) voidnonStaticMain(String[] args) (package private) voidputAndSkip(SortedSet<String> set, String file) Store the file name in the given set.
-
Field Details
-
TOOLS_ROOT
- See Also:
-
methodTextMissingByPackage
-
detailTextMissingByPackage
Includes the "defaultConstructor" warnings. -
methodTextMissing
-
detailTextMissing
-
defaultConstructor
-
lnr
LineNumberReader lnr
-
-
Constructor Details
-
ApiDocWarningsFilter
public ApiDocWarningsFilter()
-
-
Method Details
-
extractFilename
-
extractPackage
-
putAndSkip
Store the file name in the given set. Read three lines of the input, discarding the detail inforamtion. Extract the package and increment the corresponding counter.- Throws:
IOException
-
main
- Parameters:
args- [0] = input file [1] = output file.- Throws:
IOException
-
nonStaticMain
- Throws:
IOException
-