MCPcopy
hub / github.com/google/guava / getClassName

Method getClassName

guava/src/com/google/common/reflect/ClassPath.java:664–668  ·  view source on GitHub ↗
(String filename)

Source from the content-addressed store, hash-verified

662 }
663
664 @VisibleForTesting
665 static String getClassName(String filename) {
666 int classNameEnd = filename.length() - CLASS_FILE_NAME_EXTENSION.length();
667 return filename.substring(0, classNameEnd).replace('/', '.');
668 }
669
670 // TODO(benyu): Try java.nio.file.Paths#get() when Guava drops JDK 6 support.
671 @VisibleForTesting

Callers 5

testGetClassNameMethod · 0.95
ClassInfoMethod · 0.45
ExampleStackTraceMethod · 0.45
hasClassNameMethod · 0.45
findStackFrameMethod · 0.45

Calls 2

lengthMethod · 0.45
replaceMethod · 0.45

Tested by 3

testGetClassNameMethod · 0.76
hasClassNameMethod · 0.36
findStackFrameMethod · 0.36