Compiler Report

Compiler: Eclipse Compiler for Java(TM) Version: 0.B76_R37x, 3.7.1

Number of source files: 1104 Number of classfiles: 1347

Problems: 285 (Errors: 0 Warnings: 285 )

Source File: org/eclipse/wst/jsdt/core/IJavaScriptUnit.java
1. WARNING: UnusedImport

The import org.eclipse.wst.jsdt.core.dom.AST is never used

IJavaScriptUnit.java :

15 : import org.eclipse.wst.jsdt.core.dom.AST;

Source File: org/eclipse/wst/jsdt/core/JavaScriptCore.java
1. WARNING: UnusedImport

The import org.eclipse.core.resources.IContainer is never used

JavaScriptCore.java :

76 : import org.eclipse.core.resources.IContainer;

2. WARNING: UnusedImport

The import org.eclipse.core.resources.IResourceChangeEvent is never used

JavaScriptCore.java :

83 : import org.eclipse.core.resources.IResourceChangeEvent;

Source File: org/eclipse/wst/jsdt/core/infer/InferEngine.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable method is not used

InferEngine.java :

981 : InferredMember method = newType.addMethod(memberName, methodDecl, nameStart);

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable method is not used

InferEngine.java :

1054 : InferredMember method = newType.addMethod(memberName, methodDecl, nameStart);

Source File: org/eclipse/wst/jsdt/internal/codeassist/CompletionEngine.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable relevance is not used

CompletionEngine.java :

1257 : int relevance = computeBaseRelevance();

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable switchStatement is not used

CompletionEngine.java :

1383 : SwitchStatement switchStatement = astNodeParent instanceof SwitchStatement ? (SwitchStatement) astNodeParent : null;

3. WARNING: LocalVariableIsNeverUsed

The value of the local variable onlyStatic is not used

CompletionEngine.java :

1963 : boolean onlyStatic = false;

4. WARNING: LocalVariableIsNeverUsed

The value of the local variable receiverType is not used

CompletionEngine.java :

1964 : TypeBinding receiverType = null;

5. WARNING: LocalVariableIsNeverUsed

The value of the local variable staticsOnly is not used

CompletionEngine.java :

3436 : boolean staticsOnly = false;

6. WARNING: LocalVariableIsNeverUsed

The value of the local variable staticsOnly is not used

CompletionEngine.java :

3491 : boolean staticsOnly = false;

7. WARNING: LocalVariableIsNeverUsed

The value of the local variable currentType is not used

CompletionEngine.java :

4065 : ReferenceBinding currentType = receiverType;

8. WARNING: LocalVariableIsNeverUsed

The value of the local variable currentType is not used

CompletionEngine.java :

4121 : ReferenceBinding currentType = receiverType;

9. WARNING: LocalVariableIsNeverUsed

The value of the local variable isStatic is not used

CompletionEngine.java :

6386 : boolean isStatic = true;

10. WARNING: LocalVariableIsNeverUsed

The value of the local variable b is not used

CompletionEngine.java :

6651 : Binding b = scope.getBinding(name.token, Binding.VARIABLE | Binding.TYPE, name, false);

11. WARNING: UnusedPrivateMethod

The method getResolvedSignature(char[][], char[], int, Scope) from the type CompletionEngine is never used locally

CompletionEngine.java :

7435 : private char[] getResolvedSignature(char[][] parameterTypes, char[] fullyQualifiedTypeName, int parameterCount, Scope scope) {

Source File: org/eclipse/wst/jsdt/internal/codeassist/ISearchRequestor.java
1. WARNING: UnusedImport

The import org.eclipse.wst.jsdt.core.Flags is never used

ISearchRequestor.java :

13 : import org.eclipse.wst.jsdt.core.Flags;

2. WARNING: UnusedImport

The import org.eclipse.wst.jsdt.core.IAccessRule is never used

ISearchRequestor.java :

14 : import org.eclipse.wst.jsdt.core.IAccessRule;

Source File: org/eclipse/wst/jsdt/internal/codeassist/complete/CompletionJavadocParser.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable types is not used

CompletionJavadocParser.java :

476 : TypeReference[]types=null;

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable isTypeParam is not used

CompletionJavadocParser.java :

478 : boolean isTypeParam = false;

Source File: org/eclipse/wst/jsdt/internal/codeassist/complete/CompletionParser.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable nameReference is not used

CompletionParser.java :

363 : SingleNameReference nameReference = (SingleNameReference) expression;

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable recoveredType is not used

CompletionParser.java :

398 : RecoveredType recoveredType = (RecoveredType)this.currentElement;

3. WARNING: LocalVariableIsNeverUsed

The value of the local variable kind is not used

CompletionParser.java :

403 : int kind = topKnownElementKind(COMPLETION_OR_ASSIST_PARSER);

4. WARNING: LocalVariableIsNeverUsed

The value of the local variable info is not used

CompletionParser.java :

404 : int info = topKnownElementInfo(COMPLETION_OR_ASSIST_PARSER);

5. WARNING: DeadCode

Dead code

CompletionParser.java :

508 : if(false){// Not Possible selector == THIS_CONSTRUCTOR || selector == SUPER_CONSTRUCTOR) { ExplicitConstructorCall call = new ExplicitConstructorCall(ExplicitConstructorCall.This); call.arguments = new Expression[] {expression}; call.sourceStart = expression.sourceStart; call.sourceEnd = expression.sourceEnd; assistNodeParent = call; } else {

6. WARNING: UnusedPrivateMethod

The method classHeaderExtendsOrImplements(boolean) from the type CompletionParser is never used locally

CompletionParser.java :

1445 : private void classHeaderExtendsOrImplements(boolean isInterface) {

7. WARNING: DeadCode

Dead code

CompletionParser.java :

2523 : 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 {

Source File: org/eclipse/wst/jsdt/internal/codeassist/complete/CompletionScanner.java
1. WARNING: DeadCode

Dead code

CompletionScanner.java :

781 : this.eofPosition=this.cursorLocation+1;

Source File: org/eclipse/wst/jsdt/internal/codeassist/select/SelectionOnSingleNameReference.java
1. WARNING: DeadCode

Dead code

SelectionOnSingleNameReference.java :

92 : else if (!binding.isValidBinding()){ switch (binding.problemId() ) { case ProblemReasons.NotVisible: case ProblemReasons.InheritedNameHidesEnclosingName: case ProblemReasons.NonStaticReferenceInConstructorInvocation: case ProblemReasons.NonStaticReferenceInStaticContext: throw new SelectionNodeFound(typeBinding); default: throw new SelectionNodeFound(); } // !binding.isValidBinding()) }

Source File: org/eclipse/wst/jsdt/internal/compiler/ast/ASTNode.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable invocationStatus is not used

ASTNode.java :

249 : int invocationStatus = INVOCATION_ARGUMENT_OK;

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable dimensions is not used

ASTNode.java :

275 : int dimensions;

Source File: org/eclipse/wst/jsdt/internal/compiler/ast/AllocationExpression.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable argHasError is not used

AllocationExpression.java :

137 : boolean argHasError = false;

Source File: org/eclipse/wst/jsdt/internal/compiler/ast/ArrayAllocationExpression.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable dimensionType is not used

ArrayAllocationExpression.java :

86 : TypeBinding dimensionType = dimExpression.resolveTypeExpecting(scope, TypeBinding.INT);

Source File: org/eclipse/wst/jsdt/internal/compiler/ast/Block.java
1. WARNING: DeadCode

Dead code

Block.java :

85 : (!JavaScriptCore.IS_ECMASCRIPT4 || explicitDeclarations == 0)

2. WARNING: DeadCode

Dead code

Block.java :

87 : : new BlockScope(upperScope, explicitDeclarations);

Source File: org/eclipse/wst/jsdt/internal/compiler/ast/Clinit.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable sourceType is not used

Clinit.java :

117 : SourceTypeBinding sourceType =

Source File: org/eclipse/wst/jsdt/internal/compiler/ast/ConstructorDeclaration.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable actuallyThrownExceptions is not used

ConstructorDeclaration.java :

92 : ReferenceBinding[] actuallyThrownExceptions;

Source File: org/eclipse/wst/jsdt/internal/compiler/ast/DoStatement.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable type is not used

DoStatement.java :

133 : TypeBinding type = this.condition.resolveTypeExpecting(scope, TypeBinding.BOOLEAN);

Source File: org/eclipse/wst/jsdt/internal/compiler/ast/FieldReference.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable originalBinding is not used

FieldReference.java :

124 : FieldBinding originalBinding = this.binding.original();

Source File: org/eclipse/wst/jsdt/internal/compiler/ast/ForInStatement.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable type is not used

ForInStatement.java :

183 : TypeBinding type = collection.resolveTypeExpecting(scope, TypeBinding.BOOLEAN);

Source File: org/eclipse/wst/jsdt/internal/compiler/ast/ForStatement.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable type is not used

ForStatement.java :

265 : TypeBinding type = condition.resolveTypeExpecting(scope, TypeBinding.BOOLEAN);

Source File: org/eclipse/wst/jsdt/internal/compiler/ast/IfStatement.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable type is not used

IfStatement.java :

189 : TypeBinding type = condition.resolveTypeExpecting(scope, TypeBinding.BOOLEAN);

Source File: org/eclipse/wst/jsdt/internal/compiler/ast/Javadoc.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable scopeModifiers is not used

Javadoc.java :

385 : int scopeModifiers = -1;

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable scopeModifiers is not used

Javadoc.java :

553 : int scopeModifiers = -1;

3. WARNING: LocalVariableIsNeverUsed

The value of the local variable hasValidImport is not used

Javadoc.java :

597 : boolean hasValidImport = false;

Source File: org/eclipse/wst/jsdt/internal/compiler/ast/JavadocSingleTypeReference.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable closestMatch is not used

JavadocSingleTypeReference.java :

78 : ReferenceBinding closestMatch = ((ProblemReferenceBinding)this.resolvedType).closestMatch();

Source File: org/eclipse/wst/jsdt/internal/compiler/ast/QualifiedNameReference.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable complyTo14 is not used

QualifiedNameReference.java :

57 : boolean complyTo14 = currentScope.compilerOptions().complianceLevel >= ClassFileConstants.JDK1_4;

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable lastFieldBinding is not used

QualifiedNameReference.java :

58 : FieldBinding lastFieldBinding = null;

3. WARNING: LocalVariableIsNeverUsed

The value of the local variable lastReceiverType is not used

QualifiedNameReference.java :

92 : TypeBinding lastReceiverType;

4. WARNING: LocalVariableIsNeverUsed

The value of the local variable lastReceiverType is not used

QualifiedNameReference.java :

115 : TypeBinding lastReceiverType;

5. WARNING: LocalVariableIsNeverUsed

The value of the local variable originalBinding is not used

QualifiedNameReference.java :

239 : FieldBinding originalBinding = field.original();

6. WARNING: LocalVariableIsNeverUsed

The value of the local variable fieldReceiverType is not used

QualifiedNameReference.java :

325 : TypeBinding fieldReceiverType = type;

7. WARNING: LocalVariableIsNeverUsed

The value of the local variable originalBinding is not used

QualifiedNameReference.java :

332 : FieldBinding originalBinding = previousField.original();

Source File: org/eclipse/wst/jsdt/internal/compiler/ast/SwitchStatement.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable resolvedTypeBinding is not used

SwitchStatement.java :

100 : final TypeBinding resolvedTypeBinding = this.expression.resolvedType;

Source File: org/eclipse/wst/jsdt/internal/compiler/ast/TryStatement.java
1. WARNING: DeadCode

Dead code

TryStatement.java :

395 : if (JavaScriptCore.IS_ECMASCRIPT4 && finallyScope != null){

2. WARNING: DeadCode

Dead code

TryStatement.java :

395 : if (JavaScriptCore.IS_ECMASCRIPT4 && finallyScope != null){ finallyScope.shiftScopes[i+1] = catchScope; }

3. WARNING: DeadCode

Dead code

TryStatement.java :

422 : if (JavaScriptCore.IS_ECMASCRIPT4 && finallyScope != null){

4. WARNING: DeadCode

Dead code

TryStatement.java :

422 : 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); }

Source File: org/eclipse/wst/jsdt/internal/compiler/batch/FileSystem.java
1. WARNING: DeadCode

Dead code

FileSystem.java :

213 : else { this.knownFileNames.add(new String(CharOperation.subarray(fileName, matchingPathName.length, fileName.length))); }

Source File: org/eclipse/wst/jsdt/internal/compiler/batch/Main.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable localErrorCount is not used

Main.java :

1065 : int localErrorCount = 0;

2. WARNING: UnusedPrivateField

The value of the field Main.expandedCommandLine is not used

Main.java :

1381 : private String[] expandedCommandLine;

3. WARNING: UnusedPrivateField

The value of the field Main.err is not used

Main.java :

1383 : private PrintWriter err;

Source File: org/eclipse/wst/jsdt/internal/compiler/flow/NullInfoRegistry.java
1. WARNING: DeadCode

Dead code

NullInfoRegistry.java :

127 : if (coverageTestFlag && coverageTestId == 290) {

2. WARNING: DeadCode

Dead code

NullInfoRegistry.java :

127 : if (coverageTestFlag && coverageTestId == 290) { this.nullBit1 = 0; }

3. WARNING: DeadCode

Dead code

NullInfoRegistry.java :

152 : if (coverageTestFlag && coverageTestId == 300) {

4. WARNING: DeadCode

Dead code

NullInfoRegistry.java :

152 : if (coverageTestFlag && coverageTestId == 300) { this.extra[5][vectorIndex] = ~0; }

5. WARNING: DeadCode

Dead code

NullInfoRegistry.java :

168 : if (coverageTestFlag && coverageTestId == 290) {

6. WARNING: DeadCode

Dead code

NullInfoRegistry.java :

168 : if (coverageTestFlag && coverageTestId == 290) { this.nullBit1 = 0; }

7. WARNING: DeadCode

Dead code

NullInfoRegistry.java :

193 : if (coverageTestFlag && coverageTestId == 300) {

8. WARNING: DeadCode

Dead code

NullInfoRegistry.java :

193 : if (coverageTestFlag && coverageTestId == 300) { this.extra[5][vectorIndex] = ~0; }

9. WARNING: DeadCode

Dead code

NullInfoRegistry.java :

210 : if (coverageTestFlag && coverageTestId == 290) {

10. WARNING: DeadCode

Dead code

NullInfoRegistry.java :

210 : if (coverageTestFlag && coverageTestId == 290) { this.nullBit1 = 0; }

11. WARNING: DeadCode

Dead code

NullInfoRegistry.java :

235 : if (coverageTestFlag && coverageTestId == 300) {

12. WARNING: DeadCode

Dead code

NullInfoRegistry.java :

235 : if (coverageTestFlag && coverageTestId == 300) { this.extra[5][vectorIndex] = ~0; }

13. WARNING: DeadCode

Dead code

NullInfoRegistry.java :

251 : if (coverageTestFlag && coverageTestId == 290) {

14. WARNING: DeadCode

Dead code

NullInfoRegistry.java :

251 : if (coverageTestFlag && coverageTestId == 290) { this.nullBit1 = 0; }

15. WARNING: DeadCode

Dead code

NullInfoRegistry.java :

276 : if (coverageTestFlag && coverageTestId == 300) {

16. WARNING: DeadCode

Dead code

NullInfoRegistry.java :

276 : if (coverageTestFlag && coverageTestId == 300) { this.extra[5][vectorIndex] = ~0; }

Source File: org/eclipse/wst/jsdt/internal/compiler/flow/UnconditionalFlowInfo.java
1. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

114 : if (coverageTestFlag && coverageTestId == 1) {

2. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

114 : if (coverageTestFlag && coverageTestId == 1) { this.nullBit4 = ~0; }

3. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

147 : if (coverageTestFlag && coverageTestId == 2) {

4. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

147 : if (coverageTestFlag && coverageTestId == 2) { this.nullBit4 = ~0; }

5. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

169 : if (coverageTestFlag && coverageTestId == 3) {

6. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

169 : if (coverageTestFlag && coverageTestId == 3) { throw new AssertionFailedException("COVERAGE 3"); //$NON-NLS-1$ }

7. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

175 : if (coverageTestFlag && coverageTestId == 4) {

8. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

175 : if (coverageTestFlag && coverageTestId == 4) { throw new AssertionFailedException("COVERAGE 4"); //$NON-NLS-1$ }

9. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

195 : if (coverageTestFlag && coverageTestId == 5) {

10. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

195 : if (coverageTestFlag && coverageTestId == 5) { this.extra[5][otherLength - 1] = ~0; }

11. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

203 : if (coverageTestFlag && coverageTestId == 6) {

12. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

203 : if (coverageTestFlag && coverageTestId == 6) { throw new AssertionFailedException("COVERAGE 6"); //$NON-NLS-1$ }

13. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

258 : if (coverageTestFlag && coverageTestId == 7) {

14. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

258 : if (coverageTestFlag && coverageTestId == 7) { this.extra[5][i] = ~0; }

15. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

266 : if (coverageTestFlag && coverageTestId == 8) {

16. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

266 : if (coverageTestFlag && coverageTestId == 8) { this.extra[5][i] = ~0; }

17. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

371 : if (coverageTestFlag && coverageTestId == 9) {

18. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

371 : if (coverageTestFlag && coverageTestId == 9) { this.nullBit4 = ~0; }

19. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

384 : if (coverageTestFlag && coverageTestId == 10) {

20. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

384 : if (coverageTestFlag && coverageTestId == 10) { this.nullBit4 = ~0; }

21. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

399 : if (coverageTestFlag && coverageTestId == 11) {

22. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

399 : if (coverageTestFlag && coverageTestId == 11) { throw new AssertionFailedException("COVERAGE 11"); //$NON-NLS-1$ }

23. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

414 : if (coverageTestFlag && coverageTestId == 12) {

24. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

414 : if (coverageTestFlag && coverageTestId == 12) { throw new AssertionFailedException("COVERAGE 12"); //$NON-NLS-1$ }

25. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

447 : if (coverageTestFlag && coverageTestId == 13) {

26. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

447 : if (coverageTestFlag && coverageTestId == 13) { this.nullBit4 = ~0; }

27. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

461 : if (coverageTestFlag && coverageTestId == 14) {

28. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

461 : if (coverageTestFlag && coverageTestId == 14) { this.extra[5][i] = ~0; }

29. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

972 : if (coverageTestFlag && coverageTestId == 15) {

30. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

972 : if (coverageTestFlag && coverageTestId == 15) { this.nullBit4 = ~0; }

31. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

985 : if (coverageTestFlag && coverageTestId == 16) {

32. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

985 : if (coverageTestFlag && coverageTestId == 16) { throw new AssertionFailedException("COVERAGE 16"); //$NON-NLS-1$ }

33. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

998 : if (coverageTestFlag && coverageTestId == 17) {

34. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

998 : if (coverageTestFlag && coverageTestId == 17) { throw new AssertionFailedException("COVERAGE 17"); //$NON-NLS-1$ }

35. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1024 : if (coverageTestFlag && coverageTestId == 18) {

36. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1024 : if (coverageTestFlag && coverageTestId == 18) { this.extra[5][vectorIndex] = ~0; }

37. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1058 : if (coverageTestFlag && coverageTestId == 19) {

38. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1058 : if (coverageTestFlag && coverageTestId == 19) { this.nullBit4 = ~0; }

39. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1072 : if (coverageTestFlag && coverageTestId == 20) {

40. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1072 : if (coverageTestFlag && coverageTestId == 20) { throw new AssertionFailedException("COVERAGE 20"); //$NON-NLS-1$ }

41. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1085 : if (coverageTestFlag && coverageTestId == 21) {

42. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1085 : if (coverageTestFlag && coverageTestId == 21) { throw new AssertionFailedException("COVERAGE 21"); //$NON-NLS-1$ }

43. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1179 : if (coverageTestFlag && coverageTestId == 22) {

44. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1179 : if (coverageTestFlag && coverageTestId == 22) { this.nullBit1 = 0; }

45. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1198 : if (coverageTestFlag && coverageTestId == 23) {

46. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1198 : if (coverageTestFlag && coverageTestId == 23) { this.extra[2][vectorIndex] = 0; }

47. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1219 : if (coverageTestFlag && coverageTestId == 24) {

48. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1219 : if (coverageTestFlag && coverageTestId == 24) { this.nullBit4 = ~0; }

49. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1231 : if (coverageTestFlag && coverageTestId == 25) {

50. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1231 : if (coverageTestFlag && coverageTestId == 25) { this.extra[5][vectorIndex] = ~0; }

51. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1259 : if (coverageTestFlag && coverageTestId == 26) {

52. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1259 : if (coverageTestFlag && coverageTestId == 26) { this.nullBit4 = 0; }

53. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1271 : if (coverageTestFlag && coverageTestId == 27) {

54. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1271 : if (coverageTestFlag && coverageTestId == 27) { this.extra[5][vectorIndex] = 0; }

55. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1280 : if (coverageTestFlag && coverageTestId == 28) {

56. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1280 : if (coverageTestFlag && coverageTestId == 28) { throw new AssertionFailedException("COVERAGE 28"); //$NON-NLS-1$ }

57. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1286 : if (coverageTestFlag && coverageTestId == 29) {

58. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1286 : if (coverageTestFlag && coverageTestId == 29) { throw new AssertionFailedException("COVERAGE 29"); //$NON-NLS-1$ }

59. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1335 : if (coverageTestFlag && coverageTestId == 30) {

60. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1335 : if (coverageTestFlag && coverageTestId == 30) { this.nullBit4 = ~0; }

61. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1344 : if (coverageTestFlag && coverageTestId == 31) {

62. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1344 : if (coverageTestFlag && coverageTestId == 31) { this.nullBit4 = ~0; }

63. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1353 : if (coverageTestFlag && coverageTestId == 32) {

64. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1353 : if (coverageTestFlag && coverageTestId == 32) { this.nullBit4 = ~0; }

65. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1380 : if (coverageTestFlag && coverageTestId == 33) {

66. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1380 : if (coverageTestFlag && coverageTestId == 33) { throw new AssertionFailedException("COVERAGE 33"); //$NON-NLS-1$ }

67. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1388 : if (coverageTestFlag && coverageTestId == 34) {

68. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1388 : if (coverageTestFlag && coverageTestId == 34) { throw new AssertionFailedException("COVERAGE 34"); //$NON-NLS-1$ }

69. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1395 : if (coverageTestFlag && coverageTestId == 35) {

70. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1395 : if (coverageTestFlag && coverageTestId == 35) { throw new AssertionFailedException("COVERAGE 35"); //$NON-NLS-1$ }

71. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1410 : if (coverageTestFlag && coverageTestId == 36) {

72. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1410 : if (coverageTestFlag && coverageTestId == 36) { throw new AssertionFailedException("COVERAGE 36"); //$NON-NLS-1$ }

73. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1469 : if (coverageTestFlag && coverageTestId == 37) {

74. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1469 : if (coverageTestFlag && coverageTestId == 37) { this.extra[5][i] = ~0; }

75. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1482 : if (coverageTestFlag && coverageTestId == 38) {

76. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1482 : if (coverageTestFlag && coverageTestId == 38) { this.extra[5][i] = ~0; }

77. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1496 : if (coverageTestFlag && coverageTestId == 39) {

78. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1496 : if (coverageTestFlag && coverageTestId == 39) { this.extra[5][i] = ~0; }

Source File: org/eclipse/wst/jsdt/internal/compiler/lookup/BinaryTypeBinding.java
1. WARNING: DeadCode

Dead code

BinaryTypeBinding.java :

218 : } else { // ClassSignature = ParameterPart(optional) super_TypeSignature interface_signature SignatureWrapper wrapper = new SignatureWrapper(typeSignature); if (wrapper.signature[wrapper.start] == '<') { // ParameterPart = '<' ParameterSignature(s) '>' wrapper.start++; // skip '<' wrapper.start++; // skip '>' this.tagBits |= TagBits.HasUnresolvedTypeVariables; } // attempt to find the superclass if it exists in the cache (otherwise - resolve it when requested) this.superclass = (ReferenceBinding) environment.getTypeFromTypeSignature(wrapper, this); this.tagBits |= TagBits.HasUnresolvedSuperclass; }

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable methodModifiers is not used

BinaryTypeBinding.java :

290 : int methodModifiers = method.getModifiers() | ExtraCompilerModifiers.AccUnresolved;

3. WARNING: LocalVariableIsNeverUsed

The value of the local variable keepBridgeMethods is not used

BinaryTypeBinding.java :

434 : boolean keepBridgeMethods = sourceLevel < ClassFileConstants.JDK1_5

4. WARNING: LocalVariableIsNeverUsed

The value of the local variable keepBridgeMethods is not used

BinaryTypeBinding.java :

434 : boolean keepBridgeMethods = sourceLevel < ClassFileConstants.JDK1_5

Source File: org/eclipse/wst/jsdt/internal/compiler/lookup/BlockScope.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable realModifiers is not used

BlockScope.java :

181 : int realModifiers = modifiers & ExtraCompilerModifiers.AccJustFlag;

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable sourceType is not used

BlockScope.java :

646 : SourceTypeBinding sourceType = currentMethodScope.enclosingSourceType();

3. WARNING: LocalVariableIsNeverUsed

The value of the local variable nestedEnclosingType is not used

BlockScope.java :

695 : NestedTypeBinding nestedEnclosingType = (NestedTypeBinding) enclosingType;

4. WARNING: LocalVariableIsNeverUsed

The value of the local variable count is not used

BlockScope.java :

710 : int count = 1;

5. WARNING: LocalVariableIsNeverUsed

The value of the local variable currentEnclosingType is not used

BlockScope.java :

711 : ReferenceBinding currentEnclosingType;

Source File: org/eclipse/wst/jsdt/internal/compiler/lookup/ClassScope.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable existingType is not used

ClassScope.java :

293 : ReferenceBinding existingType = packageBinding.getType0(className[className.length - 1]);

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable declaringClass is not used

ClassScope.java :

393 : final ReferenceBinding declaringClass = fieldBinding.declaringClass;

Source File: org/eclipse/wst/jsdt/internal/compiler/lookup/CompilationUnitScope.java
1. WARNING: UnusedPrivateField

The value of the field CompilationUnitScope.methodScope is not used

CompilationUnitScope.java :

65 : private MethodScope methodScope;

Source File: org/eclipse/wst/jsdt/internal/compiler/lookup/FieldBinding.java
1. WARNING: DeadCode

Dead code

FieldBinding.java :

66 : SourceTypeBinding invocationType = scope.enclosingSourceType();

Source File: org/eclipse/wst/jsdt/internal/compiler/lookup/LookupEnvironment.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable bound is not used

LookupEnvironment.java :

913 : TypeBinding bound = getTypeFromTypeSignature(wrapper, enclosingType);

Source File: org/eclipse/wst/jsdt/internal/compiler/lookup/MetatdataTypeBinding.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable previousBinding is not used

MetatdataTypeBinding.java :

78 : FieldBinding previousBinding = (FieldBinding) knownFieldNames.get(fieldName);

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable argCount is not used

MetatdataTypeBinding.java :

304 : int argCount = argumentTypes.length;

3. WARNING: DeadCode

Dead code

MetatdataTypeBinding.java :

309 : for (int imethod = (int)range, end = (int)(range >> 32); imethod <= end; imethod++) {

4. WARNING: DeadCode

Dead code

MetatdataTypeBinding.java :

337 : for (int imethod = (int)range, end = (int)(range >> 32); imethod <= end; imethod++) {

5. WARNING: DeadCode

Dead code

MetatdataTypeBinding.java :

367 : for (int imethod = (int)range, end = (int)(range >> 32); imethod <= end; imethod++) {

6. WARNING: LocalVariableIsNeverUsed

The value of the local variable leafType is not used

MetatdataTypeBinding.java :

818 : TypeBinding leafType = parameterType.leafComponentType();

Source File: org/eclipse/wst/jsdt/internal/compiler/lookup/MethodScope.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable declaringClass is not used

MethodScope.java :

119 : final ReferenceBinding declaringClass = methodBinding.declaringClass;

Source File: org/eclipse/wst/jsdt/internal/compiler/lookup/MultipleTypeBinding.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable name is not used

MultipleTypeBinding.java :

27 : char [][] name={};

Source File: org/eclipse/wst/jsdt/internal/compiler/lookup/ReferenceBinding.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable interfacesToVisit is not used

ReferenceBinding.java :

510 : ReferenceBinding[] interfacesToVisit = null;

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable nextPosition is not used

ReferenceBinding.java :

511 : int nextPosition = 0;

Source File: org/eclipse/wst/jsdt/internal/compiler/lookup/Scope.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable nextPosition is not used

Scope.java :

452 : int nextPosition = 0;

2. WARNING: DeadCode

Dead code

Scope.java :

542 : if (interfacesToVisit != null) { ProblemReferenceBinding ambiguous = null; done : for (int i = 0; i < nextPosition; i++) { ReferenceBinding anInterface = interfacesToVisit[i]; unitScope.recordReference(anInterface, typeName); if ((memberType = anInterface.getMemberType(typeName)) != null) { unitScope.recordTypeReference(memberType); if (visibleMemberType == null) { visibleMemberType = memberType; } else { ambiguous = new ProblemReferenceBinding(typeName, visibleMemberType, ProblemReasons.Ambiguous); break done; } } } if (ambiguous != null) return ambiguous; }

3. WARNING: LocalVariableIsNeverUsed

The value of the local variable declaringClass is not used

Scope.java :

751 : ReferenceBinding declaringClass = candidates[0].declaringClass;

4. WARNING: DeadCode

Dead code

Scope.java :

1326 : return binding; // answer the better problem binding

5. WARNING: DeadCode

Dead code

Scope.java :

1669 : return insideProblem;

6. WARNING: LocalVariableIsNeverUsed

The value of the local variable insideStaticContext is not used

Scope.java :

1991 : boolean insideStaticContext = false;

7. WARNING: LocalVariableIsNeverUsed

The value of the local variable invalidInvocations is not used

Scope.java :

2256 : TypeBinding[] invalidInvocations = (TypeBinding[]) value;

8. WARNING: DeadCode

Dead code

Scope.java :

2813 : if (mostSpecificExceptions != null) { Object[] values = possibleMethods.values; int exceptionLength = mostSpecificExceptions.length; nextMethod : for (int p = 0, vLength = values.length; p < vLength; p++) { MethodBinding possible = (MethodBinding) values[p]; if (possible == null) continue nextMethod; if (0 == exceptionLength) { nextException : for (int e = 0; e < exceptionLength; e++) { ReferenceBinding exception = null; for (int f = 0; f < exceptionLength; f++) if (exception == mostSpecificExceptions[f]) continue nextException; continue nextMethod; } return possible; } } // do not return a new methodBinding until we know that it does not cause problems // return new FunctionBinding( // current.modifiers, // current.selector, // current.returnType, // current.parameters, // mostSpecificExceptions, // current.declaringClass // ); }

Source File: org/eclipse/wst/jsdt/internal/compiler/lookup/SourceTypeBinding.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable argCount is not used

SourceTypeBinding.java :

390 : int argCount = argumentTypes.length;

2. WARNING: DeadCode

Dead code

SourceTypeBinding.java :

400 : for (int imethod = (int) range, end = (int) (range >> 32); imethod <= end; imethod++) {

3. WARNING: DeadCode

Dead code

SourceTypeBinding.java :

423 : for (int imethod = (int) range, end = (int) (range >> 32); imethod <= end; imethod++) {

4. WARNING: DeadCode

Dead code

SourceTypeBinding.java :

477 : for (int imethod = (int) range, end = (int) (range >> 32); imethod <= end; imethod++) {

5. WARNING: LocalVariableIsNeverUsed

The value of the local variable leafType is not used

SourceTypeBinding.java :

1126 : TypeBinding leafType = methodType.leafComponentType();

Source File: org/eclipse/wst/jsdt/internal/compiler/parser/AbstractCommentParser.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable start is not used

AbstractCommentParser.java :

829 : int start = this.scanner.getCurrentTokenStartPosition();

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable start is not used

AbstractCommentParser.java :

1014 : int start = this.scanner.getCurrentTokenStartPosition();

Source File: org/eclipse/wst/jsdt/internal/compiler/parser/Parser.java
1. WARNING: DeadCode

Dead code

Parser.java :

1085 : 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; }

2. WARNING: DeadCode

Dead code

Parser.java :

2515 : } else { this.lastCheckPoint = md.sourceStart; this.restartRecovery = true; }

3. WARNING: LocalVariableIsNeverUsed

The value of the local variable arrayInitializer is not used

Parser.java :

5225 : ArrayInitializer arrayInitializer = (ArrayInitializer) this.expressionStack[this.expressionPtr--];

4. WARNING: LocalVariableIsNeverUsed

The value of the local variable prevAct is not used

Parser.java :

5654 : int prevAct = START_STATE,

5. WARNING: DeadCode

Dead code

Parser.java :

5805 : if (DEBUG_AUTOMATON && act <= NUM_RULES) {

6. WARNING: DeadCode

Dead code

Parser.java :

5805 : if (DEBUG_AUTOMATON && act <= NUM_RULES) { System.out.print(" - "); //$NON-NLS-1$ }

7. WARNING: DeadCode

Dead code

Parser.java :

6035 : System.out.println("parsing "+new String(sourceUnit.getFileName())); //$NON-NLS-1$

8. WARNING: UnusedPrivateMethod

The method visit(TypeDeclaration, Scope) from the type MethodVisitor is never used locally

Parser.java :

6536 : public boolean visit(TypeDeclaration typeDeclaration, Scope scope) {

9. WARNING: DeadCode

Dead code

Parser.java :

6651 : { 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; } } } }

10. WARNING: DeadCode

Dead code

Parser.java :

6939 : } else { return false; }

Source File: org/eclipse/wst/jsdt/internal/compiler/parser/SourceTypeConverter.java
1. WARNING: DeadCode

Dead code

SourceTypeConverter.java :

151 : int start = topLevelTypeInfo.getNameSourceStart();

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable kind is not used

SourceTypeConverter.java :

469 : int kind = TypeDeclaration.kind(type.modifiers);

3. WARNING: LocalVariableIsNeverUsed

The value of the local variable kind is not used

SourceTypeConverter.java :

469 : int kind = TypeDeclaration.kind(type.modifiers);

4. WARNING: LocalVariableIsNeverUsed

The value of the local variable kind is not used

SourceTypeConverter.java :

469 : int kind = TypeDeclaration.kind(type.modifiers);

5. WARNING: UnusedPrivateMethod

The method decodeTypeArguments(String, int, int, int) from the type SourceTypeConverter is never used locally

SourceTypeConverter.java :

817 : private TypeReference[] decodeTypeArguments(String typeSignature, int length, int start, int end) {

6. WARNING: UnusedPrivateMethod

The method getSource() from the type SourceTypeConverter is never used locally

SourceTypeConverter.java :

849 : private char[] getSource() {

7. WARNING: UnusedPrivateMethod

The method parseMemberValue(char[]) from the type SourceTypeConverter is never used locally

SourceTypeConverter.java :

855 : private Expression parseMemberValue(char[] memberValue) {

Source File: org/eclipse/wst/jsdt/internal/compiler/problem/ProblemReporter.java
1. WARNING: UnusedPrivateMethod

The method retrieveEndingPositionAfterOpeningParenthesis(int, int, int) from the type ProblemReporter is never used locally

ProblemReporter.java :

2844 : private int retrieveEndingPositionAfterOpeningParenthesis(int sourceStart, int sourceEnd, int numberOfParen) {

2. WARNING: UnusedPrivateMethod

The method retrieveStartingPositionAfterOpeningParenthesis(int, int, int) from the type ProblemReporter is never used locally

ProblemReporter.java :

2873 : private int retrieveStartingPositionAfterOpeningParenthesis(int sourceStart, int sourceEnd, int numberOfParen) {

Source File: org/eclipse/wst/jsdt/internal/compiler/util/Util.java
1. WARNING: UnusedImport

The import org.eclipse.wst.jsdt.core.IIncludePathEntry is never used

Util.java :

23 : import org.eclipse.wst.jsdt.core.IIncludePathEntry;

Source File: org/eclipse/wst/jsdt/internal/core/BinaryMethod.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable dotBasedSignature is not used

BinaryMethod.java :

70 : char[] dotBasedSignature = CharOperation.replaceOnCopy(genericSignature, '/', '.');

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable modifiers is not used

BinaryMethod.java :

178 : int modifiers = this.getFlags();

Source File: org/eclipse/wst/jsdt/internal/core/ClassFile.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable resolveBindings is not used

ClassFile.java :

137 : boolean resolveBindings;

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable pkg is not used

ClassFile.java :

330 : JavaElement pkg = (JavaElement) getParent();

Source File: org/eclipse/wst/jsdt/internal/core/ClasspathEntry.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable hasSource is not used

ClasspathEntry.java :

1275 : boolean hasSource = false;

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable hasLibFolder is not used

ClasspathEntry.java :

1276 : boolean hasLibFolder = false;

3. WARNING: LocalVariableIsNeverUsed

The value of the local variable potentialNestedOutput is not used

ClasspathEntry.java :

1293 : IPath potentialNestedOutput = null; // for error reporting purpose

4. WARNING: LocalVariableIsNeverUsed

The value of the local variable sourceEntryCount is not used

ClasspathEntry.java :

1294 : int sourceEntryCount = 0;

5. WARNING: LocalVariableIsNeverUsed

The value of the local variable disableCustomOutputLocations is not used

ClasspathEntry.java :

1296 : boolean disableCustomOutputLocations = JavaScriptCore.DISABLED.equals(javaProject.getOption(JavaScriptCore.CORE_ENABLE_CLASSPATH_MULTIPLE_OUTPUT_LOCATIONS, true));

6. WARNING: LocalVariableIsNeverUsed

The value of the local variable prereqProject is not used

ClasspathEntry.java :

1629 : IJavaScriptProject prereqProject = JavaScriptCore.create(prereqProjectRsc);

Source File: org/eclipse/wst/jsdt/internal/core/ClasspathValidation.java
1. WARNING: DeadCode

Dead code

ClasspathValidation.java :

38 : JavaModelManager.PerProjectInfo perProjectInfo;

Source File: org/eclipse/wst/jsdt/internal/core/CompilationUnit.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable resolveBindings is not used

CompilationUnit.java :

156 : boolean resolveBindings;

Source File: org/eclipse/wst/jsdt/internal/core/DeltaProcessor.java
1. WARNING: UnusedPrivateMethod

The method isResFilteredFromOutput(DeltaProcessor.RootInfo, DeltaProcessor.OutputsInfo, IResource, int) from the type DeltaProcessor is never used locally

DeltaProcessor.java :

1490 : private boolean isResFilteredFromOutput(RootInfo rootInfo, OutputsInfo info, IResource res, int elementType) {

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable project is not used

DeltaProcessor.java :

2501 : IJavaScriptProject project = element.getJavaScriptProject();

Source File: org/eclipse/wst/jsdt/internal/core/DocumentContextFragmentRoot.java
1. WARNING: DeadCode

Dead code

DocumentContextFragmentRoot.java :

81 : if(DEBUG && !shown) {

2. WARNING: DeadCode

Dead code

DocumentContextFragmentRoot.java :

81 : 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(); } }

Source File: org/eclipse/wst/jsdt/internal/core/JavaElementDeltaBuilder.java
1. WARNING: UnusedPrivateMethod

The method equals(char[][][], char[][][]) from the type JavaElementDeltaBuilder is never used locally

JavaElementDeltaBuilder.java :

154 : private boolean equals(char[][][] first, char[][][] second) {

Source File: org/eclipse/wst/jsdt/internal/core/JavaModelManager.java
1. WARNING: UnusedPrivateField

The value of the field JavaModelManager.annotationProcessorManagerFactory is not used

JavaModelManager.java :

195 : private IConfigurationElement annotationProcessorManagerFactory = null;

2. WARNING: UnusedPrivateMethod

The method getClasspathEntries() from the type new IJsGlobalScopeContainer(){} is never used locally

JavaModelManager.java :

243 : public IIncludePathEntry[] getClasspathEntries() {

3. WARNING: UnusedPrivateMethod

The method getClasspathEntries() from the type JavaModelManager.PersistedJsGlobalScopeContainer is never used locally

JavaModelManager.java :

2593 : public IIncludePathEntry[] getClasspathEntries() {

4. WARNING: LocalVariableIsNeverUsed

The value of the local variable element is not used

JavaModelManager.java :

2921 : IJavaScriptElement element = (IJavaScriptElement)entry.getKey();

5. WARNING: UnusedPrivateMethod

The method getClasspathEntries() from the type new IJsGlobalScopeContainer(){} is never used locally

JavaModelManager.java :

3008 : public IIncludePathEntry[] getClasspathEntries() {

6. WARNING: DeadCode

Dead code

JavaModelManager.java :

3235 : 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); } } }

Source File: org/eclipse/wst/jsdt/internal/core/JavaProject.java
1. WARNING: DeadCode

Dead code

JavaProject.java :

656 : { // root = new JarPackageFragmentRoot(entryPath, this); }

Source File: org/eclipse/wst/jsdt/internal/core/NameLookup.java
1. WARNING: UnusedPrivateField

The value of the field NameLookup.workingCopies is not used

NameLookup.java :

180 : private IJavaScriptUnit[] workingCopies;

Source File: org/eclipse/wst/jsdt/internal/core/SearchableEnvironment.java
1. WARNING: DeadCode

Dead code

SearchableEnvironment.java :

79 : if (false){//this.checkAccessRestrictions) { this.searchScope = BasicSearchEngine .createJavaSearchScope(this.nameLookup.packageFragmentRoots ); } else {

Source File: org/eclipse/wst/jsdt/internal/core/builder/AbstractImageBuilder.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable segmentCount is not used

AbstractImageBuilder.java :

152 : final int segmentCount = sourceLocation.sourceFolder.getFullPath().segmentCount();

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable isOutputFolder is not used

AbstractImageBuilder.java :

154 : final boolean isOutputFolder = sourceLocation.sourceFolder.equals(outputFolder);

Source File: org/eclipse/wst/jsdt/internal/core/builder/IncrementalImageBuilder.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable definedTypeNames is not used

IncrementalImageBuilder.java :

322 : char[][] definedTypeNames = newState.getDefinedTypeNamesFor(typeLocator);

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable removedPackageFolder is not used

IncrementalImageBuilder.java :

536 : IFolder removedPackageFolder = md.binaryFolder.getFolder(removedPackagePath);

Source File: org/eclipse/wst/jsdt/internal/core/builder/NameEnvironment.java
1. WARNING: DeadCode

Dead code

NameEnvironment.java :

190 : 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)); }

Source File: org/eclipse/wst/jsdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java
1. WARNING: UnusedPrivateField

The value of the field ASTRewriteAnalyzer.ModifierRewriter.annotationSeparation is not used

ASTRewriteAnalyzer.java :

1255 : private final Prefix annotationSeparation;

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable curr is not used

ASTRewriteAnalyzer.java :

1265 : ASTNode curr= getNewNode(nodeIndex);

3. WARNING: LocalVariableIsNeverUsed

The value of the local variable pos is not used

ASTRewriteAnalyzer.java :

2467 : int pos= rewriteJavadoc(node, PackageDeclaration.JAVADOC_PROPERTY);

Source File: org/eclipse/wst/jsdt/internal/core/dom/rewrite/ImportRewriteAnalyzer.java
1. WARNING: UnusedPrivateField

The value of the field ImportRewriteAnalyzer.isRewriteExisting is not used

ImportRewriteAnalyzer.java :

67 : private boolean isRewriteExisting=true;

2. WARNING: UnusedPrivateMethod

The method createOnPlaceholderEntry(String) from the type ImportRewriteAnalyzer.PackageEntry is never used locally

ImportRewriteAnalyzer.java :

851 : public static PackageEntry createOnPlaceholderEntry(String preferenceOrder) {

3. WARNING: UnusedPrivateMethod

The method getLast() from the type ImportRewriteAnalyzer.PackageEntry is never used locally

ImportRewriteAnalyzer.java :

1014 : public ImportDeclEntry getLast() {

Source File: org/eclipse/wst/jsdt/internal/core/hierarchy/HierarchyBuilder.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable elementName is not used

HierarchyBuilder.java :

248 : final char[] elementName = handle.getElementName().toCharArray();

Source File: org/eclipse/wst/jsdt/internal/core/index/DiskIndex.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable numReindexedDocNames is not used

DiskIndex.java :

276 : int numReindexedDocNames = 0;

Source File: org/eclipse/wst/jsdt/internal/core/search/BasicSearchEngine.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable singleWkcpPath is not used

BasicSearchEngine.java :

628 : final String singleWkcpPath = workingCopyPath;

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable enclosingTypeNames is not used

BasicSearchEngine.java :

709 : char[][] enclosingTypeNames;

3. WARNING: LocalVariableIsNeverUsed

The value of the local variable enclosingTypeNames is not used

BasicSearchEngine.java :

753 : char[][] enclosingTypeNames;

4. WARNING: LocalVariableIsNeverUsed

The value of the local variable kind is not used

BasicSearchEngine.java :

761 : int kind;

Source File: org/eclipse/wst/jsdt/internal/core/search/HierarchyScope.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable root is not used

HierarchyScope.java :

84 : IPackageFragmentRoot root = (IPackageFragmentRoot)type.getPackageFragment().getParent();

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable workspaceRoot is not used

HierarchyScope.java :

118 : IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();

3. WARNING: LocalVariableIsNeverUsed

The value of the local variable workspaceRoot is not used

HierarchyScope.java :

118 : IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();

4. WARNING: LocalVariableIsNeverUsed

The value of the local variable root is not used

HierarchyScope.java :

126 : IPackageFragmentRoot root =

5. WARNING: LocalVariableIsNeverUsed

The value of the local variable root is not used

HierarchyScope.java :

126 : IPackageFragmentRoot root =

Source File: org/eclipse/wst/jsdt/internal/core/search/indexing/SourceIndexerRequestor.java
1. WARNING: UnusedPrivateMethod

The method getSimpleName(char[]) from the type SourceIndexerRequestor is never used locally

SourceIndexerRequestor.java :

247 : private char[] getSimpleName(char[] typeName) {

Source File: org/eclipse/wst/jsdt/internal/core/search/matching/ConstructorLocator.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable constructorBinding is not used

ConstructorLocator.java :

207 : MethodBinding constructorBinding = null;

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable isSynthetic is not used

ConstructorLocator.java :

208 : boolean isSynthetic = false;

3. WARNING: LocalVariableIsNeverUsed

The value of the local variable call is not used

ConstructorLocator.java :

261 : ExplicitConstructorCall call = constructor.constructorCall;

Source File: org/eclipse/wst/jsdt/internal/core/search/matching/MatchLocator.java
1. WARNING: DeadCode

Dead code

MatchLocator.java :

824 : if (lastTypeArguments != null) { for (int i=lastTypeArguments.length-1; i>=0 && last==null; i++) { last = lastTypeArguments[i]; } }

2. WARNING: DeadCode

Dead code

MatchLocator.java :

830 : depth++;

3. WARNING: DeadCode

Dead code

MatchLocator.java :

995 : : (INameEnvironment) new JavaSearchNameEnvironment(project, this.workingCopies);

4. WARNING: LocalVariableIsNeverUsed

The value of the local variable offset is not used

MatchLocator.java :

2357 : int offset = 0;//element.g;

5. WARNING: DeadCode

Dead code

MatchLocator.java :

2544 : if (nodes != null) { if ((this.matchContainer & PatternLocator.CLASS_CONTAINER) == 0) { for (int i = 0, l = nodes.length; i < l; i++) nodeSet.matchingNodes.removeKey(nodes[i]); } else { if (encloses(enclosingElement)) for (int i = 0, l = nodes.length; i < l; i++) { ASTNode node = nodes[i]; Integer level = (Integer) nodeSet.matchingNodes.removeKey(node); this.patternLocator.matchReportReference(node, enclosingElement, elementBinding, level.intValue(), this); } } } else {

Source File: org/eclipse/wst/jsdt/internal/core/search/matching/MethodLocator.java
1. WARNING: UnusedPrivateMethod

The method methodParametersEqualsPattern(MethodBinding) from the type MethodLocator is never used locally

MethodLocator.java :

317 : private boolean methodParametersEqualsPattern(MethodBinding method) {

Source File: org/eclipse/wst/jsdt/internal/core/search/matching/SuperTypeReferencePattern.java
1. WARNING: DeadCode

Dead code

SuperTypeReferencePattern.java :

56 : if (superQualification != null) { System.arraycopy(superQualification, 0, mangledQualification, 0, start-1); mangledQualification[start-1] = '.'; }

Source File: org/eclipse/wst/jsdt/internal/core/util/ASTNodeFinder.java
1. WARNING: DeadCode

Dead code

ASTNodeFinder.java :

125 : IJavaScriptElement parent = typeHandle.getParent();

Source File: org/eclipse/wst/jsdt/internal/core/util/BindingKeyResolver.java
1. WARNING: UnusedPrivateMethod

The method getTypeBindingArguments() from the type BindingKeyResolver is never used locally

BindingKeyResolver.java :

311 : private TypeBinding[] getTypeBindingArguments() {

Source File: org/eclipse/wst/jsdt/internal/core/util/HandleFactory.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable separatorIndex is not used

HandleFactory.java :

85 : int separatorIndex;

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable rootPathLength is not used

HandleFactory.java :

122 : int rootPathLength = -1;

3. WARNING: UnusedPrivateMethod

The method getJarPkgFragmentRoot(String, IJavaScriptSearchScope) from the type HandleFactory is never used locally

HandleFactory.java :

262 : private IPackageFragmentRoot getJarPkgFragmentRoot(String jarPathString, IJavaScriptSearchScope scope) {

Source File: org/eclipse/wst/jsdt/internal/core/util/KeyToSignature.java
1. WARNING: UnusedPrivateField

The value of the field KeyToSignature.typeSigStart is not used

KeyToSignature.java :

33 : private int typeSigStart = -1;

Source File: org/eclipse/wst/jsdt/internal/core/util/Util.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable typeArgsCount is not used

Util.java :

2466 : int typeArgsCount = 0;

Source File: org/eclipse/wst/jsdt/internal/formatter/CodeFormatterVisitor.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable kind is not used

CodeFormatterVisitor.java :

950 : int kind = TypeDeclaration.kind(typeDeclaration.modifiers);

Source File: org/eclipse/wst/jsdt/internal/oaametadata/MetadataReader.java
1. WARNING: UnusedPrivateType

The type MessageBundleHandler is never used locally

MetadataReader.java :

801 : class MessageBundleHandler extends DefaultHandler

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable inputSource is not used

MetadataReader.java :

843 : InputSource inputSource = new InputSource(new FileReader(file));

Source File: org/eclipse/wst/jsdt/launching/JavaRuntime.java
1. WARNING: DeadCode

Dead code

JavaRuntime.java :

422 : if (install != null) { install.getVMInstallType().disposeVMInstall(install.getId()); }