File tree Expand file tree Collapse file tree 2 files changed +0
-24
lines changed
main/java/io/opentelemetry/javaagent/tooling
test/java/io/opentelemetry/javaagent/tooling Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -41,16 +41,6 @@ public static String getResourceName(String className) {
4141 return className .replace ('.' , '/' ) + ".class" ;
4242 }
4343
44- /** com/foo/Bar to com.foo.Bar */
45- public static String getClassName (String internalName ) {
46- return internalName .replace ('/' , '.' );
47- }
48-
49- /** com.foo.Bar to com/foo/Bar */
50- public static String getInternalName (Class <?> clazz ) {
51- return clazz .getName ().replace ('.' , '/' );
52- }
53-
5444 /**
5545 * Get method definition for given {@link TypeDefinition} and method name.
5646 *
Original file line number Diff line number Diff line change @@ -17,18 +17,4 @@ void getResourceNameAddsSuffixAndConvertDotsToSlashes() {
1717
1818 assertThat (result ).isEqualTo ("com/example/Something.class" );
1919 }
20-
21- @ Test
22- void getClassNameConvertsSlashesToDots () {
23- String result = Utils .getClassName ("com/example/Something" );
24-
25- assertThat (result ).isEqualTo ("com.example.Something" );
26- }
27-
28- @ Test
29- void getInternalNameConvertsSlashesToDots () {
30- String result = Utils .getInternalName (UtilsTest .class );
31-
32- assertThat (result ).isEqualTo ("io/opentelemetry/javaagent/tooling/UtilsTest" );
33- }
3420}
You can’t perform that action at this time.
0 commit comments