Compiler: Eclipse Java Compiler Version: 0.959, 3.5.0 rc1
Number of source files: 1189 Number of classfiles: 1437
Problems: 210 (Errors: 0 Warnings: 210 )
The import org.eclipse.core.resources.IResourceChangeEvent is never used
JavaScriptCore.java :
83 : import org.eclipse.core.resources.IResourceChangeEvent;
The local variable local is never read
ASTConverter.java :
320 : org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration local = (org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration) stmts[index];
The local variable indexInAnnotations is never read
ASTConverter.java :
4248 : int indexInAnnotations = 0;
The local variable annotations is never read
ASTConverter.java :
4372 : org.eclipse.wst.jsdt.internal.compiler.ast.Annotation[] annotations = argument.annotations;
The local variable indexInAnnotations is never read
ASTConverter.java :
4373 : int indexInAnnotations = 0;
The local variable annotations is never read
ASTConverter.java :
4439 : org.eclipse.wst.jsdt.internal.compiler.ast.Annotation[] annotations = localDeclaration.annotations;
The local variable indexInAnnotations is never read
ASTConverter.java :
4440 : int indexInAnnotations = 0;
The local variable annotations is never read
ASTConverter.java :
4533 : org.eclipse.wst.jsdt.internal.compiler.ast.Annotation[] annotations = localDeclaration.annotations;
The local variable indexInAnnotations is never read
ASTConverter.java :
4534 : int indexInAnnotations = 0;
The local variable annotations is never read
ASTConverter.java :
4606 : org.eclipse.wst.jsdt.internal.compiler.ast.Annotation[] annotations = localDeclaration.annotations;
The local variable indexInAnnotations is never read
ASTConverter.java :
4607 : int indexInAnnotations = 0;
Null pointer access: The variable toType can only be null at this location
InferEngine.java :
1347 : toType.methods=inClass.methods;
The method computeTargetedElement(CompletionOnAnnotationOfType) from the type CompletionEngine is never used locally
CompletionEngine.java :
2696 : private long computeTargetedElement(CompletionOnAnnotationOfType fakeNode) {
The method findAnnotationAttributes(char[], MemberValuePair[], ReferenceBinding) from the type CompletionEngine is never used locally
CompletionEngine.java :
2746 : private void findAnnotationAttributes(char[] token, MemberValuePair[] attributesFound, ReferenceBinding annotation) {
The method findImportsOfStaticFields(char[], ReferenceBinding) from the type CompletionEngine is never used locally
CompletionEngine.java :
4480 : private void findImportsOfStaticFields(char[] fieldName, ReferenceBinding ref) {
The method findImportsOfStaticMethods(char[], ReferenceBinding) from the type CompletionEngine is never used locally
CompletionEngine.java :
4536 : private void findImportsOfStaticMethods(char[] methodName, ReferenceBinding ref) {
The method findLocalMethodsOfStaticImports(char[], MethodBinding[], Scope, ObjectVector, ReferenceBinding, InvocationSite) from the type CompletionEngine is never used locally
CompletionEngine.java :
5960 : private void findLocalMethodsOfStaticImports( char[] methodName, MethodBinding[] methods, Scope scope, ObjectVector methodsFound, ReferenceBinding receiverType, InvocationSite invocationSite) {
Dead code
CompletionEngine.java :
7127 : if (token.length == 0 && NO_TYPE_COMPLETION_ON_EMPTY_TOKEN) { if(!assistNodeIsConstructor && (this.assistNodeInJavadoc & CompletionOnJavadoc.EXCEPTION) == 0) { return; } skip = true; }
The local variable isStatic is never read
CompletionEngine.java :
8160 : boolean isStatic = true;
The method selectStaticFieldFromStaticImport(CompilationUnitDeclaration, char[], ReferenceBinding) from the type SelectionEngine is never used locally
SelectionEngine.java :
912 : private void selectStaticFieldFromStaticImport(CompilationUnitDeclaration parsedUnit, char[] lastToken, ReferenceBinding ref) {
The method selectStaticMethodFromStaticImport(CompilationUnitDeclaration, char[], ReferenceBinding) from the type SelectionEngine is never used locally
SelectionEngine.java :
934 : private void selectStaticMethodFromStaticImport(CompilationUnitDeclaration parsedUnit, char[] lastToken, ReferenceBinding ref) {
The local variable types is never read
CompletionJavadocParser.java :
476 : TypeReference[]types=null;
Dead code
CompletionParser.java :
689 : if(false){// Not Possible selector == THIS_CONSTRUCTOR || selector == SUPER_CONSTRUCTOR) { ExplicitConstructorCall call = new ExplicitConstructorCall( (selector == THIS_CONSTRUCTOR) ? ExplicitConstructorCall.This : ExplicitConstructorCall.Super ); call.arguments = new Expression[] {expression}; call.sourceStart = expression.sourceStart; call.sourceEnd = expression.sourceEnd; assistNodeParent = call; } else {
Dead code
CompletionParser.java :
3618 : if(false){//!isInsideMethod()) { if (isInsideFieldInitialization()) { return new CompletionOnSingleNameReference( assistName, position, new char[][]{Keywords.FALSE, Keywords.TRUE}, false, isInsideAttributeValue()); } return new CompletionOnSingleNameReference(assistName, position, isInsideAttributeValue()); } else {
Dead code
CompletionScanner.java :
784 : this.eofPosition=this.cursorLocation+1;
The local variable packageName is never read
SourceElementParser.java :
1047 : char[][] packageName = parsedUnit.compilationResult.getPackageName();
The local variable argHasError is never read
AllocationExpression.java :
255 : boolean argHasError = false;
The local variable foundValue is never read
Annotation.java :
265 : boolean foundValue = false;
Dead code
Block.java :
80 : (!JavaScriptCore.IS_ECMASCRIPT4 || explicitDeclarations == 0)
Dead code
Block.java :
82 : : new BlockScope(upperScope, explicitDeclarations);
The field Clinit.assertionSyntheticFieldBinding is never read locally
Clinit.java :
33 : private FieldBinding assertionSyntheticFieldBinding = null;
The field Clinit.classLiteralSyntheticField is never read locally
Clinit.java :
34 : private FieldBinding classLiteralSyntheticField = null;
Dead code
SwitchStatement.java :
172 : scope = !JavaScriptCore.IS_ECMASCRIPT4 ? upperScope : new BlockScope(upperScope);
Dead code
TryStatement.java :
354 : finallyScope = JavaScriptCore.IS_ECMASCRIPT4 ? new BlockScope(this.scope, false) : this.scope; // don't add it yet to parent scope
Dead code
TryStatement.java :
408 : if (JavaScriptCore.IS_ECMASCRIPT4 && finallyScope != null){
Dead code
TryStatement.java :
408 : if (JavaScriptCore.IS_ECMASCRIPT4 && finallyScope != null){ finallyScope.shiftScopes[i+1] = catchScope; }
Dead code
TryStatement.java :
435 : if (JavaScriptCore.IS_ECMASCRIPT4 && finallyScope != null){
Dead code
TryStatement.java :
435 : if (JavaScriptCore.IS_ECMASCRIPT4 && finallyScope != null){ // add finallyScope as last subscope, so it can be shifted behind try/catch subscopes. // the shifting is necessary to achieve no overlay in between the finally scope and its // sibling in term of local variable positions. this.scope.addSubscope(finallyScope); }
The local variable old is never read
TypeDeclaration.java :
854 : boolean old = this.staticInitializerScope.insideTypeAnnotation;
The local variable hasEnumConstants is never read
TypeDeclaration.java :
929 : boolean hasEnumConstants = false;
The local variable hasEnumConstantsWithoutBody is never read
TypeDeclaration.java :
930 : boolean hasEnumConstantsWithoutBody = false;
Dead code
NullInfoRegistry.java :
127 : if (coverageTestFlag && coverageTestId == 290) {
Dead code
NullInfoRegistry.java :
127 : if (coverageTestFlag && coverageTestId == 290) { this.nullBit1 = 0; }
Dead code
NullInfoRegistry.java :
152 : if (coverageTestFlag && coverageTestId == 300) {
Dead code
NullInfoRegistry.java :
152 : if (coverageTestFlag && coverageTestId == 300) { this.extra[5][vectorIndex] = ~0; }
Dead code
NullInfoRegistry.java :
168 : if (coverageTestFlag && coverageTestId == 290) {
Dead code
NullInfoRegistry.java :
168 : if (coverageTestFlag && coverageTestId == 290) { this.nullBit1 = 0; }
Dead code
NullInfoRegistry.java :
193 : if (coverageTestFlag && coverageTestId == 300) {
Dead code
NullInfoRegistry.java :
193 : if (coverageTestFlag && coverageTestId == 300) { this.extra[5][vectorIndex] = ~0; }
Dead code
NullInfoRegistry.java :
210 : if (coverageTestFlag && coverageTestId == 290) {
Dead code
NullInfoRegistry.java :
210 : if (coverageTestFlag && coverageTestId == 290) { this.nullBit1 = 0; }
Dead code
NullInfoRegistry.java :
235 : if (coverageTestFlag && coverageTestId == 300) {
Dead code
NullInfoRegistry.java :
235 : if (coverageTestFlag && coverageTestId == 300) { this.extra[5][vectorIndex] = ~0; }
Dead code
NullInfoRegistry.java :
251 : if (coverageTestFlag && coverageTestId == 290) {
Dead code
NullInfoRegistry.java :
251 : if (coverageTestFlag && coverageTestId == 290) { this.nullBit1 = 0; }
Dead code
NullInfoRegistry.java :
276 : if (coverageTestFlag && coverageTestId == 300) {
Dead code
NullInfoRegistry.java :
276 : if (coverageTestFlag && coverageTestId == 300) { this.extra[5][vectorIndex] = ~0; }
Dead code
UnconditionalFlowInfo.java :
115 : if (coverageTestFlag && coverageTestId == 1) {
Dead code
UnconditionalFlowInfo.java :
115 : if (coverageTestFlag && coverageTestId == 1) { this.nullBit4 = ~0; }
Dead code
UnconditionalFlowInfo.java :
148 : if (coverageTestFlag && coverageTestId == 2) {
Dead code
UnconditionalFlowInfo.java :
148 : if (coverageTestFlag && coverageTestId == 2) { this.nullBit4 = ~0; }
Dead code
UnconditionalFlowInfo.java :
170 : if (coverageTestFlag && coverageTestId == 3) {
Dead code
UnconditionalFlowInfo.java :
170 : if (coverageTestFlag && coverageTestId == 3) { throw new AssertionFailedException("COVERAGE 3"); //$NON-NLS-1$ }
Dead code
UnconditionalFlowInfo.java :
176 : if (coverageTestFlag && coverageTestId == 4) {
Dead code
UnconditionalFlowInfo.java :
176 : if (coverageTestFlag && coverageTestId == 4) { throw new AssertionFailedException("COVERAGE 4"); //$NON-NLS-1$ }
Dead code
UnconditionalFlowInfo.java :
196 : if (coverageTestFlag && coverageTestId == 5) {
Dead code
UnconditionalFlowInfo.java :
196 : if (coverageTestFlag && coverageTestId == 5) { this.extra[5][otherLength - 1] = ~0; }
Dead code
UnconditionalFlowInfo.java :
204 : if (coverageTestFlag && coverageTestId == 6) {
Dead code
UnconditionalFlowInfo.java :
204 : if (coverageTestFlag && coverageTestId == 6) { throw new AssertionFailedException("COVERAGE 6"); //$NON-NLS-1$ }
Dead code
UnconditionalFlowInfo.java :
259 : if (coverageTestFlag && coverageTestId == 7) {
Dead code
UnconditionalFlowInfo.java :
259 : if (coverageTestFlag && coverageTestId == 7) { this.extra[5][i] = ~0; }
Dead code
UnconditionalFlowInfo.java :
267 : if (coverageTestFlag && coverageTestId == 8) {
Dead code
UnconditionalFlowInfo.java :
267 : if (coverageTestFlag && coverageTestId == 8) { this.extra[5][i] = ~0; }
Dead code
UnconditionalFlowInfo.java :
372 : if (coverageTestFlag && coverageTestId == 9) {
Dead code
UnconditionalFlowInfo.java :
372 : if (coverageTestFlag && coverageTestId == 9) { this.nullBit4 = ~0; }
Dead code
UnconditionalFlowInfo.java :
385 : if (coverageTestFlag && coverageTestId == 10) {
Dead code
UnconditionalFlowInfo.java :
385 : if (coverageTestFlag && coverageTestId == 10) { this.nullBit4 = ~0; }
Dead code
UnconditionalFlowInfo.java :
400 : if (coverageTestFlag && coverageTestId == 11) {
Dead code
UnconditionalFlowInfo.java :
400 : if (coverageTestFlag && coverageTestId == 11) { throw new AssertionFailedException("COVERAGE 11"); //$NON-NLS-1$ }
Dead code
UnconditionalFlowInfo.java :
415 : if (coverageTestFlag && coverageTestId == 12) {
Dead code
UnconditionalFlowInfo.java :
415 : if (coverageTestFlag && coverageTestId == 12) { throw new AssertionFailedException("COVERAGE 12"); //$NON-NLS-1$ }
Dead code
UnconditionalFlowInfo.java :
448 : if (coverageTestFlag && coverageTestId == 13) {
Dead code
UnconditionalFlowInfo.java :
448 : if (coverageTestFlag && coverageTestId == 13) { this.nullBit4 = ~0; }
Dead code
UnconditionalFlowInfo.java :
462 : if (coverageTestFlag && coverageTestId == 14) {
Dead code
UnconditionalFlowInfo.java :
462 : if (coverageTestFlag && coverageTestId == 14) { this.extra[5][i] = ~0; }
Dead code
UnconditionalFlowInfo.java :
978 : if (coverageTestFlag && coverageTestId == 15) {
Dead code
UnconditionalFlowInfo.java :
978 : if (coverageTestFlag && coverageTestId == 15) { this.nullBit4 = ~0; }
Dead code
UnconditionalFlowInfo.java :
991 : if (coverageTestFlag && coverageTestId == 16) {
Dead code
UnconditionalFlowInfo.java :
991 : if (coverageTestFlag && coverageTestId == 16) { throw new AssertionFailedException("COVERAGE 16"); //$NON-NLS-1$ }
Dead code
UnconditionalFlowInfo.java :
1004 : if (coverageTestFlag && coverageTestId == 17) {
Dead code
UnconditionalFlowInfo.java :
1004 : if (coverageTestFlag && coverageTestId == 17) { throw new AssertionFailedException("COVERAGE 17"); //$NON-NLS-1$ }
Dead code
UnconditionalFlowInfo.java :
1030 : if (coverageTestFlag && coverageTestId == 18) {
Dead code
UnconditionalFlowInfo.java :
1030 : if (coverageTestFlag && coverageTestId == 18) { this.extra[5][vectorIndex] = ~0; }
Dead code
UnconditionalFlowInfo.java :
1064 : if (coverageTestFlag && coverageTestId == 19) {
Dead code
UnconditionalFlowInfo.java :
1064 : if (coverageTestFlag && coverageTestId == 19) { this.nullBit4 = ~0; }
Dead code
UnconditionalFlowInfo.java :
1078 : if (coverageTestFlag && coverageTestId == 20) {
Dead code
UnconditionalFlowInfo.java :
1078 : if (coverageTestFlag && coverageTestId == 20) { throw new AssertionFailedException("COVERAGE 20"); //$NON-NLS-1$ }
Dead code
UnconditionalFlowInfo.java :
1091 : if (coverageTestFlag && coverageTestId == 21) {
Dead code
UnconditionalFlowInfo.java :
1091 : if (coverageTestFlag && coverageTestId == 21) { throw new AssertionFailedException("COVERAGE 21"); //$NON-NLS-1$ }
Dead code
UnconditionalFlowInfo.java :
1185 : if (coverageTestFlag && coverageTestId == 22) {
Dead code
UnconditionalFlowInfo.java :
1185 : if (coverageTestFlag && coverageTestId == 22) { this.nullBit1 = 0; }
Dead code
UnconditionalFlowInfo.java :
1197 : if (coverageTestFlag && coverageTestId == 23) {
Dead code
UnconditionalFlowInfo.java :
1197 : if (coverageTestFlag && coverageTestId == 23) { this.extra[2][vectorIndex] = 0; }
Dead code
UnconditionalFlowInfo.java :
1218 : if (coverageTestFlag && coverageTestId == 24) {
Dead code
UnconditionalFlowInfo.java :
1218 : if (coverageTestFlag && coverageTestId == 24) { this.nullBit4 = ~0; }
Dead code
UnconditionalFlowInfo.java :
1230 : if (coverageTestFlag && coverageTestId == 25) {
Dead code
UnconditionalFlowInfo.java :
1230 : if (coverageTestFlag && coverageTestId == 25) { this.extra[5][vectorIndex] = ~0; }
Dead code
UnconditionalFlowInfo.java :
1258 : if (coverageTestFlag && coverageTestId == 26) {
Dead code
UnconditionalFlowInfo.java :
1258 : if (coverageTestFlag && coverageTestId == 26) { this.nullBit4 = 0; }
Dead code
UnconditionalFlowInfo.java :
1270 : if (coverageTestFlag && coverageTestId == 27) {
Dead code
UnconditionalFlowInfo.java :
1270 : if (coverageTestFlag && coverageTestId == 27) { this.extra[5][vectorIndex] = 0; }
Dead code
UnconditionalFlowInfo.java :
1279 : if (coverageTestFlag && coverageTestId == 28) {
Dead code
UnconditionalFlowInfo.java :
1279 : if (coverageTestFlag && coverageTestId == 28) { throw new AssertionFailedException("COVERAGE 28"); //$NON-NLS-1$ }
Dead code
UnconditionalFlowInfo.java :
1285 : if (coverageTestFlag && coverageTestId == 29) {
Dead code
UnconditionalFlowInfo.java :
1285 : if (coverageTestFlag && coverageTestId == 29) { throw new AssertionFailedException("COVERAGE 29"); //$NON-NLS-1$ }
Dead code
UnconditionalFlowInfo.java :
1334 : if (coverageTestFlag && coverageTestId == 30) {
Dead code
UnconditionalFlowInfo.java :
1334 : if (coverageTestFlag && coverageTestId == 30) { this.nullBit4 = ~0; }
Dead code
UnconditionalFlowInfo.java :
1343 : if (coverageTestFlag && coverageTestId == 31) {
Dead code
UnconditionalFlowInfo.java :
1343 : if (coverageTestFlag && coverageTestId == 31) { this.nullBit4 = ~0; }
Dead code
UnconditionalFlowInfo.java :
1352 : if (coverageTestFlag && coverageTestId == 32) {
Dead code
UnconditionalFlowInfo.java :
1352 : if (coverageTestFlag && coverageTestId == 32) { this.nullBit4 = ~0; }
Dead code
UnconditionalFlowInfo.java :
1379 : if (coverageTestFlag && coverageTestId == 33) {
Dead code
UnconditionalFlowInfo.java :
1379 : if (coverageTestFlag && coverageTestId == 33) { throw new AssertionFailedException("COVERAGE 33"); //$NON-NLS-1$ }
Dead code
UnconditionalFlowInfo.java :
1387 : if (coverageTestFlag && coverageTestId == 34) {
Dead code
UnconditionalFlowInfo.java :
1387 : if (coverageTestFlag && coverageTestId == 34) { throw new AssertionFailedException("COVERAGE 34"); //$NON-NLS-1$ }
Dead code
UnconditionalFlowInfo.java :
1394 : if (coverageTestFlag && coverageTestId == 35) {
Dead code
UnconditionalFlowInfo.java :
1394 : if (coverageTestFlag && coverageTestId == 35) { throw new AssertionFailedException("COVERAGE 35"); //$NON-NLS-1$ }
Dead code
UnconditionalFlowInfo.java :
1409 : if (coverageTestFlag && coverageTestId == 36) {
Dead code
UnconditionalFlowInfo.java :
1409 : if (coverageTestFlag && coverageTestId == 36) { throw new AssertionFailedException("COVERAGE 36"); //$NON-NLS-1$ }
Dead code
UnconditionalFlowInfo.java :
1468 : if (coverageTestFlag && coverageTestId == 37) {
Dead code
UnconditionalFlowInfo.java :
1468 : if (coverageTestFlag && coverageTestId == 37) { this.extra[5][i] = ~0; }
Dead code
UnconditionalFlowInfo.java :
1481 : if (coverageTestFlag && coverageTestId == 38) {
Dead code
UnconditionalFlowInfo.java :
1481 : if (coverageTestFlag && coverageTestId == 38) { this.extra[5][i] = ~0; }
Dead code
UnconditionalFlowInfo.java :
1495 : if (coverageTestFlag && coverageTestId == 39) {
Dead code
UnconditionalFlowInfo.java :
1495 : if (coverageTestFlag && coverageTestId == 39) { this.extra[5][i] = ~0; }
The method connectSuperInterfaces() from the type ClassScope is never used locally
ClassScope.java :
898 : private boolean connectSuperInterfaces() {
Dead code
FieldBinding.java :
69 : SourceTypeBinding invocationType = scope.enclosingSourceType();
The local variable previousBinding is never read
MetatdataTypeBinding.java :
79 : FieldBinding previousBinding = (FieldBinding) knownFieldNames.get(fieldName);
The local variable argCount is never read
MetatdataTypeBinding.java :
305 : int argCount = argumentTypes.length;
Dead code
MetatdataTypeBinding.java :
310 : for (int imethod = (int)range, end = (int)(range >> 32); imethod <= end; imethod++) {
Dead code
MetatdataTypeBinding.java :
338 : for (int imethod = (int)range, end = (int)(range >> 32); imethod <= end; imethod++) {
Dead code
MetatdataTypeBinding.java :
368 : for (int imethod = (int)range, end = (int)(range >> 32); imethod <= end; imethod++) {
Dead code
MetatdataTypeBinding.java :
439 : if (JavaScriptCore.IS_ECMASCRIPT4 && isInterface()) {
Dead code
MetatdataTypeBinding.java :
439 : if (JavaScriptCore.IS_ECMASCRIPT4 && isInterface()) { if (this.superInterfaces.length == 1) { if (refScope != null) refScope.recordTypeReference(this.superInterfaces[0]); return this.superInterfaces[0].getExactMethod(selector, argumentTypes, refScope); } /* BC- Added cycle check BUG 200501 */ } else if (this.superclass != null && this.superclass!=this) {
The local variable isEnumSpecialMethod is never read
MetatdataTypeBinding.java :
728 : boolean isEnumSpecialMethod = isEnum()
The local variable name is never read
MultipleTypeBinding.java :
27 : char [][] name={};
Dead code
Scope.java :
938 : if (JavaScriptCore.IS_ECMASCRIPT4 && interfacesToVisit != null) {
Dead code
Scope.java :
938 : if (JavaScriptCore.IS_ECMASCRIPT4 && interfacesToVisit != null) { ProblemFieldBinding ambiguous = null; done : for (int i = 0; i < nextPosition; i++) { ReferenceBinding anInterface = interfacesToVisit[i]; unitScope.recordTypeReference(anInterface); if ((field = anInterface.getField(fieldName, true /*resolve*/)) != null) { if (visibleField == null) { visibleField = field; } else { ambiguous = new ProblemFieldBinding(visibleField /* closest match*/, visibleField.declaringClass, fieldName, ProblemReasons.Ambiguous); break done; } } else { ReferenceBinding[] itsInterfaces = anInterface.superInterfaces(); if (itsInterfaces != null && itsInterfaces != Binding.NO_SUPERINTERFACES) { int itsLength = itsInterfaces.length; if (nextPosition + itsLength >= interfacesToVisit.length) System.arraycopy(interfacesToVisit, 0, interfacesToVisit = new ReferenceBinding[nextPosition + itsLength + 5], 0, nextPosition); nextInterface : for (int a = 0; a < itsLength; a++) { ReferenceBinding next = itsInterfaces[a]; for (int b = 0; b < nextPosition; b++) if (next == interfacesToVisit[b]) continue nextInterface; interfacesToVisit[nextPosition++] = next; } } } } if (ambiguous != null) return ambiguous; }
The local variable foundInImport is never read
Scope.java :
2812 : boolean foundInImport = false;
The local variable type is never read
Scope.java :
2813 : Binding type = null;
The local variable argCount is never read
SourceTypeBinding.java :
876 : int argCount = argumentTypes.length;
Dead code
SourceTypeBinding.java :
881 : for (int imethod = (int)range, end = (int)(range >> 32); imethod <= end; imethod++) {
Dead code
SourceTypeBinding.java :
903 : for (int imethod = (int)range, end = (int)(range >> 32); imethod <= end; imethod++) {
Dead code
SourceTypeBinding.java :
941 : for (int imethod = (int)range, end = (int)(range >> 32); imethod <= end; imethod++) {
Dead code
SourceTypeBinding.java :
1007 : if (JavaScriptCore.IS_ECMASCRIPT4 && isInterface()) {
Dead code
SourceTypeBinding.java :
1007 : if (JavaScriptCore.IS_ECMASCRIPT4 && isInterface()) { if (this.superInterfaces.length == 1) { if (refScope != null) refScope.recordTypeReference(this.superInterfaces[0]); return this.superInterfaces[0].getExactMethod(selector, argumentTypes, refScope); } /* BC- Added cycle check BUG 200501 */ } else if (this.superclass != null && this.superclass!=this) {
The local variable isEnumSpecialMethod is never read
SourceTypeBinding.java :
1433 : boolean isEnumSpecialMethod = isEnum()
Dead code
Parser.java :
1103 : if (false){ // experimenting restart recovery from scratch this.compilationUnit.currentPackage = null; this.compilationUnit.imports = null; this.compilationUnit.types = null; this.compilationUnit.statements = null; this.currentToken = 0; this.listLength = 0; this.listTypeParameterLength = 0; this.endPosition = 0; this.endStatementPosition = 0; return element; }
Dead code
Parser.java :
4569 : } else { this.lastCheckPoint = md.sourceStart; this.restartRecovery = true; }
Dead code
Parser.java :
4628 : || (this.scanner.getLineNumber(md.returnType.sourceStart) == this.scanner.getLineNumber(md.sourceStart))){
Dead code
Parser.java :
4636 : } else { this.lastCheckPoint = md.sourceStart; this.restartRecovery = true; }
The method consumeForInitExpression() from the type Parser is never used locally
Parser.java :
6305 : private void consumeForInitExpression() {
The method comsumeDUMMY() from the type Parser is never used locally
Parser.java :
6422 : private void comsumeDUMMY() {
The local variable prevAct is never read
Parser.java :
8768 : int prevAct = START_STATE,
Dead code
Parser.java :
8919 : if (DEBUG_AUTOMATON && act <= NUM_RULES) {
Dead code
Parser.java :
8919 : if (DEBUG_AUTOMATON && act <= NUM_RULES) { System.out.print(" - "); //$NON-NLS-1$ }
Dead code
Parser.java :
9149 : System.out.println("parsing "+new String(sourceUnit.getFileName())); //$NON-NLS-1$
The method visit(TypeDeclaration, Scope) from the type MethodVisitor is never used locally
Parser.java :
9652 : public boolean visit(TypeDeclaration typeDeclaration, Scope scope) {
Dead code
Parser.java :
9767 : { MethodVisitor methodVisitor = new MethodVisitor(); TypeVisitor typeVisitor = new TypeVisitor(); methodVisitor.typeVisitor = typeVisitor; typeVisitor.methodVisitor = methodVisitor; if(this.referenceContext instanceof AbstractMethodDeclaration) { ((AbstractMethodDeclaration)this.referenceContext).traverse(methodVisitor, (Scope)null); }else if(this.referenceContext instanceof CompilationUnitDeclaration) { CompilationUnitDeclaration compilationUnitDeclaration=(CompilationUnitDeclaration)this.referenceContext; if (compilationUnitDeclaration.statements!=null) for (int i = 0; i < compilationUnitDeclaration.statements.length; i++) { if( compilationUnitDeclaration.statements[i] instanceof AbstractMethodDeclaration) ((AbstractMethodDeclaration)compilationUnitDeclaration.statements[i] ).traverse(methodVisitor, (Scope)null); } } else if(this.referenceContext instanceof TypeDeclaration) { TypeDeclaration typeContext = (TypeDeclaration)this.referenceContext; int length = typeContext.fields.length; for (int i = 0; i < length; i++) { final FieldDeclaration fieldDeclaration = typeContext.fields[i]; switch(fieldDeclaration.getKind()) { case AbstractVariableDeclaration.INITIALIZER: methodVisitor.enclosingType = typeContext; ((Initializer) fieldDeclaration).traverse(methodVisitor, (MethodScope)null); break; } } } }
Dead code
Parser.java :
10057 : } else { return false; }
Dead code
SourceTypeConverter.java :
164 : int start = topLevelTypeInfo.getNameSourceStart();
The local variable shownMethod is never read
ProblemReporter.java :
3296 : MethodBinding shownMethod = null;
The method parameterBoundAsString(TypeVariableBinding, boolean) from the type ProblemReporter is never used locally
ProblemReporter.java :
4267 : private String parameterBoundAsString(TypeVariableBinding typeVariable, boolean makeShort) {
The local variable resolveBindings is never read
ClassFile.java :
137 : boolean resolveBindings;
The local variable pkg is never read
ClassFile.java :
330 : JavaElement pkg = (JavaElement) getParent();
The local variable potentialNestedOutput is never read
ClasspathEntry.java :
1316 : IPath potentialNestedOutput = null; // for error reporting purpose
The local variable disableCustomOutputLocations is never read
ClasspathEntry.java :
1319 : boolean disableCustomOutputLocations = JavaScriptCore.DISABLED.equals(javaProject.getOption(JavaScriptCore.CORE_ENABLE_CLASSPATH_MULTIPLE_OUTPUT_LOCATIONS, true));
The local variable prereqProject is never read
ClasspathEntry.java :
1708 : IJavaScriptProject prereqProject = JavaScriptCore.create(prereqProjectRsc);
Dead code
ClasspathValidation.java :
39 : JavaModelManager.PerProjectInfo perProjectInfo;
The local variable resolveBindings is never read
CompilationUnit.java :
157 : boolean resolveBindings;
Dead code
DocumentContextFragmentRoot.java :
83 : if(DEBUG && !shown) {
Dead code
DocumentContextFragmentRoot.java :
83 : if(DEBUG && !shown) { shown=false; IJavaScriptProject proj = getJavaScriptProject(); try { IIncludePathEntry[] entries = proj.getResolvedIncludepath(true); System.out.println("DocumentContextFragmentRoot ====>" +"Project Classpath : \n"); //$NON-NLS-1$ //$NON-NLS-2$ for(int i = 0;i<entries.length;i++) { System.out.println("\t" + entries[i].getPath()); //$NON-NLS-1$ } } catch (JavaScriptModelException ex) { // TODO Auto-generated catch block ex.printStackTrace(); } }
The local variable element is never read
JavaModelManager.java :
3009 : IJavaScriptElement element = (IJavaScriptElement)entry.getKey();
Dead code
JavaModelManager.java :
3323 : else { // old code retained for performance comparisons // variables out.writeInt(this.variables.size()); Iterator iterator = this.variables.entrySet().iterator(); while (iterator.hasNext()) { Map.Entry entry = (Map.Entry) iterator.next(); String variableName = (String) entry.getKey(); out.writeUTF(variableName); IPath path = (IPath) entry.getValue(); out.writeUTF(path == null ? CP_ENTRY_IGNORE : path.toPortableString()); } // containers IJavaScriptProject[] projects = getJavaModel().getJavaScriptProjects(); int length = projects.length; out.writeInt(length); for (int i = 0; i < length; i++) { IJavaScriptProject project = projects[i]; // clone while iterating (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=59638) Map projectContainers = containerClone(project); out.writeUTF(project.getElementName()); if (projectContainers == null) { out.writeInt(0); continue; } HashMap containersToSave = new HashMap(); for (iterator = projectContainers.entrySet().iterator(); iterator.hasNext();) { Map.Entry entry = (Map.Entry) iterator.next(); IPath containerPath = (IPath) entry.getKey(); IJsGlobalScopeContainer container = (IJsGlobalScopeContainer) entry.getValue(); String containerString = null; try { if (container == null) { // container has not been initialized yet, use previous session value // (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=73969) container = getPreviousSessionContainer(containerPath, project); } if (container != null) { IIncludePathEntry[] entries = container.getIncludepathEntries(); containerString = ((JavaProject)project).encodeClasspath( entries, null, false, null/*not interested in unknown elements*/); } } catch(JavaScriptModelException e){ // could not encode entry: will not persist Util.log(e, "Could not persist container " + containerPath + " for project " + project.getElementName()); //$NON-NLS-1$ //$NON-NLS-2$ } if (containerString != null) containersToSave.put(containerPath, containerString); } out.writeInt(containersToSave.size()); iterator = containersToSave.entrySet().iterator(); while (iterator.hasNext()) { Map.Entry entry = (Map.Entry) iterator.next(); IPath containerPath = (IPath) entry.getKey(); out.writeUTF(containerPath.toPortableString()); String containerString = (String) entry.getValue(); out.writeInt(containerString.length()); out.writeBytes(containerString); } } }
Dead code
JavaProject.java :
655 : { // root = new JarPackageFragmentRoot(entryPath, this); }
The local variable rscPath is never read
JavaProject.java :
3094 : IFolder rscPath = this.project.getFolder(JavaProject.SHARED_PROPERTIES_DIRECTORY);
Dead code
SearchableEnvironment.java :
78 : if (false){//this.checkAccessRestrictions) { this.searchScope = BasicSearchEngine .createJavaSearchScope(this.nameLookup.packageFragmentRoots ); } else {
The local variable segmentCount is never read
AbstractImageBuilder.java :
171 : final int segmentCount = sourceLocation.sourceFolder.getFullPath().segmentCount();
The local variable isOutputFolder is never read
AbstractImageBuilder.java :
173 : final boolean isOutputFolder = sourceLocation.sourceFolder.equals(outputFolder);
The local variable definedTypeNames is never read
IncrementalImageBuilder.java :
322 : char[][] definedTypeNames = newState.getDefinedTypeNamesFor(typeLocator);
Dead code
NameEnvironment.java :
192 : if (target instanceof IResource) { IResource resource = (IResource) target; ClasspathLocation bLocation = null; // if (resource instanceof IFile) { // if (!(org.eclipse.wst.jsdt.internal.compiler.util.Util.isClassFileName(path.lastSegment()))) // continue nextEntry; // AccessRuleSet accessRuleSet = // (JavaScriptCore.IGNORE.equals(javaProject.getOption(JavaScriptCore.COMPILER_PB_FORBIDDEN_REFERENCE, true)) // && JavaScriptCore.IGNORE.equals(javaProject.getOption(JavaScriptCore.COMPILER_PB_DISCOURAGED_REFERENCE, true))) // ? null // : entry.getAccessRuleSet(); // bLocation = ClasspathLocation.forLibrary((IFile) resource, accessRuleSet); // } else if (resource instanceof IContainer) { // AccessRuleSet accessRuleSet = // (JavaScriptCore.IGNORE.equals(javaProject.getOption(JavaScriptCore.COMPILER_PB_FORBIDDEN_REFERENCE, true)) // && JavaScriptCore.IGNORE.equals(javaProject.getOption(JavaScriptCore.COMPILER_PB_DISCOURAGED_REFERENCE, true))) // ? null // : entry.getAccessRuleSet(); // bLocation = ClasspathLocation.forBinaryFolder((IContainer) target, false, accessRuleSet); // is library folder not output folder // } // bLocations.add(bLocation); if (binaryLocationsPerProject != null) { // normal builder mode IProject p = resource.getProject(); // can be the project being built ClasspathLocation[] existingLocations = (ClasspathLocation[]) binaryLocationsPerProject.get(p); if (existingLocations == null) { existingLocations = new ClasspathLocation[] {bLocation}; } else { int size = existingLocations.length; System.arraycopy(existingLocations, 0, existingLocations = new ClasspathLocation[size + 1], 0, size); existingLocations[size] = bLocation; } binaryLocationsPerProject.put(p, existingLocations); } } else if (target instanceof File) { if (!(org.eclipse.wst.jsdt.internal.compiler.util.Util.isClassFileName(path.lastSegment()))) continue nextEntry; AccessRuleSet accessRuleSet = (JavaScriptCore.IGNORE.equals(javaProject.getOption(JavaScriptCore.COMPILER_PB_FORBIDDEN_REFERENCE, true)) && JavaScriptCore.IGNORE.equals(javaProject.getOption(JavaScriptCore.COMPILER_PB_DISCOURAGED_REFERENCE, true))) ? null : entry.getAccessRuleSet(); bLocations.add(ClasspathLocation.forLibrary(path.toString(), accessRuleSet)); }
The field ASTRewriteAnalyzer.ModifierRewriter.annotationSeparation is never read locally
ASTRewriteAnalyzer.java :
1260 : private final Prefix annotationSeparation;
The local variable curr is never read
ASTRewriteAnalyzer.java :
1270 : ASTNode curr= getNewNode(nodeIndex);
The local variable pos is never read
ASTRewriteAnalyzer.java :
2554 : int pos= rewriteJavadoc(node, PackageDeclaration.JAVADOC_PROPERTY);
The field ImportRewriteAnalyzer.isRewriteExisting is never read locally
ImportRewriteAnalyzer.java :
67 : private boolean isRewriteExisting=true;
The method createOnPlaceholderEntry(String) from the type ImportRewriteAnalyzer.PackageEntry is never used locally
ImportRewriteAnalyzer.java :
851 : public static PackageEntry createOnPlaceholderEntry(String preferenceOrder) {
The method getLast() from the type ImportRewriteAnalyzer.PackageEntry is never used locally
ImportRewriteAnalyzer.java :
1014 : public ImportDeclEntry getLast() {
The local variable enclosingTypeNames is never read
BasicSearchEngine.java :
802 : char[][] enclosingTypeNames;
The local variable enclosingTypeNames is never read
BasicSearchEngine.java :
854 : char[][] enclosingTypeNames;
The local variable kind is never read
BasicSearchEngine.java :
862 : int kind;
The local variable root is never read
HierarchyScope.java :
84 : IPackageFragmentRoot root = (IPackageFragmentRoot)type.getPackageFragment().getParent();
The local variable workspaceRoot is never read
HierarchyScope.java :
118 : IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
The local variable root is never read
HierarchyScope.java :
126 : IPackageFragmentRoot root =
Dead code
MatchLocator.java :
1040 : : (INameEnvironment) new JavaSearchNameEnvironment(project, this.workingCopies);
The local variable offset is never read
MatchLocator.java :
2610 : int offset = 0;//element.g;
Dead code
ASTNodeFinder.java :
125 : IJavaScriptElement parent = typeHandle.getParent();
The local variable separatorIndex is never read
HandleFactory.java :
85 : int separatorIndex;
The method getJarPkgFragmentRoot(String, IJavaScriptSearchScope) from the type HandleFactory is never used locally
HandleFactory.java :
261 : private IPackageFragmentRoot getJarPkgFragmentRoot(String jarPathString, IJavaScriptSearchScope scope) {
The type MessageBundleHandler is never used locally
MetadataReader.java :
801 : class MessageBundleHandler extends DefaultHandler
The local variable inputSource is never read
MetadataReader.java :
843 : InputSource inputSource = new InputSource(new FileReader(file));