MCPcopy Index your code
hub / github.com/evernat/dead-code-detector / excludeJavaMethods

Method excludeJavaMethods

src/main/java/dcd/Result.java:285–298  ·  view source on GitHub ↗
(ClassReader classReader, Set<String> methods)

Source from the content-addressed store, hash-verified

283 }
284
285 void excludeJavaMethods(ClassReader classReader, Set<String> methods) {
286 // premier filtre : si mode public, on exclue
287 // les méthodes qui implémentent ou surchargent une méthode Java,
288 // par exemple actionPerformed, equals, hashCode
289 // (le filtre final sera fait dans filterJavaMethods)
290 if (DcdHelper.isJavaClass(classReader.getSuperName())) {
291 excludeJavaMethods(methods, classReader.getSuperName());
292 } else {
293 methods.removeAll(javaLangObjectMethods);
294 }
295 for (final String interfaceName : classReader.getInterfaces()) {
296 excludeJavaMethods(methods, interfaceName);
297 }
298 }
299
300 private void excludeJavaMethods(Set<String> methods, String asmClassName) {
301 if (!methods.isEmpty() && DcdHelper.isJavaClass(asmClassName)) {

Callers 1

indexClassesMethod · 0.80

Calls 2

isJavaClassMethod · 0.95
getJavaMethodsMethod · 0.95

Tested by

no test coverage detected