mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 13:11:39 +07:00
use proper delimiter for constructor name identification
This commit is contained in:
+1
-1
@@ -119,7 +119,7 @@ public class TestDiscoveryInstrumentator {
|
||||
public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {
|
||||
if (methodsFilter.shouldVisitMethod(access, name, desc, signature, exceptions)) {
|
||||
if ("<init>".equals(name)) {
|
||||
final int slashPos = className.lastIndexOf('/');
|
||||
final int slashPos = className.lastIndexOf('.');
|
||||
final int $Pos = className.lastIndexOf('$');
|
||||
name = className.substring(Math.max(slashPos, $Pos) + 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user