Skip to content

Commit bc64252

Browse files
committed
Bug: warning "The value of the local variable anonClassName is not used"
removed unused code.
1 parent abe3d79 commit bc64252

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

sources/net.sf.j2s.core/src/net/sf/j2s/core/astvisitors/ASTScriptVisitor.java

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -672,20 +672,7 @@ public boolean visit(ClassInstanceCreation node) {
672672
buffer.append(")");
673673
} else {
674674
ITypeBinding binding = node.resolveTypeBinding();
675-
String anonClassName = null;
676-
if (binding.isAnonymous() || binding.isLocal()) {
677-
String binaryName = binding.getBinaryName();
678-
if (binaryName == null) {
679-
String bindingKey = binding.getKey();
680-
if (bindingKey != null) {
681-
binaryName = bindingKey = bindingKey.substring(1, bindingKey.length() - 1).replace('/', '.');
682-
}
683-
}
684-
anonClassName = assureQualifiedName(shortenQualifiedName(binaryName));
685-
} else {
686-
anonClassName = assureQualifiedName(shortenQualifiedName(binding.getQualifiedName()));
687-
}
688-
675+
// FIXME: commented-out code. To be removed after St. Olaf merge.
689676
// String baseClassName = assureQualifiedName(shortenQualifiedName(getFullClassName()));
690677
// String shortClassName = null;
691678
// int idx = anonClassName.lastIndexOf('.');

0 commit comments

Comments
 (0)