MCPcopy Create free account
hub / github.com/evernat/dead-code-detector / reportDeadCodeSuspects

Method reportDeadCodeSuspects

src/main/java/dcd/Report.java:124–136  ·  view source on GitHub ↗
(boolean publicDeadCode, String asmClassName, Set<String> descs)

Source from the content-addressed store, hash-verified

122 }
123
124 void reportDeadCodeSuspects(boolean publicDeadCode, String asmClassName, Set<String> descs)
125 throws XMLStreamException {
126 if (descs.isEmpty()) {
127 // analyzeViewFiles peut avoir laisser des listes vides
128 return;
129 }
130 final String type = publicDeadCode ? "publicDeadCode" : "privateDeadCode";
131 final String className = Type.getObjectType(asmClassName).getClassName();
132 final String msg = (publicDeadCode ? "Public suspects in class "
133 : "Private suspects in class ") + className + ':';
134 final String msg2 = '\t' + descs.toString();
135 reportWarning(type, className, msg, msg2);
136 }
137
138 void reportUselessInitializations(String className, Set<String> fields)
139 throws XMLStreamException {

Callers 1

reportDeadCodeMethod · 0.80

Calls 2

reportWarningMethod · 0.95
toStringMethod · 0.80

Tested by

no test coverage detected