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) {
41
41
return className .replace ('.' , '/' ) + ".class" ;
42
42
}
43
43
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
-
54
44
/**
55
45
* Get method definition for given {@link TypeDefinition} and method name.
56
46
*
Original file line number Diff line number Diff line change @@ -17,18 +17,4 @@ void getResourceNameAddsSuffixAndConvertDotsToSlashes() {
17
17
18
18
assertThat (result ).isEqualTo ("com/example/Something.class" );
19
19
}
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
- }
34
20
}
You can’t perform that action at this time.
0 commit comments