Compiler Report

Compiler: Eclipse Compiler for Java(TM) Version: 0.C58, 3.8.0

Number of source files: 1120 Number of classfiles: 1388

Problems: 263 (Errors: 0 Warnings: 263 )

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/InferredType.java
1. WARNING: UnusedImport

The import org.eclipse.wst.jsdt.internal.compiler.ast.ObjectLiteral is never used

InferredType.java :

22 : import org.eclipse.wst.jsdt.internal.compiler.ast.ObjectLiteral;

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 :

789 : int relevance = computeBaseRelevance();

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable prefixRequired is not used

CompletionEngine.java :

2589 : boolean prefixRequired = false;

3. WARNING: LocalVariableIsNeverUsed

The value of the local variable staticsOnly is not used

CompletionEngine.java :

2828 : boolean staticsOnly = false;

4. WARNING: LocalVariableIsNeverUsed

The value of the local variable staticsOnly is not used

CompletionEngine.java :

2884 : boolean staticsOnly = false;

5. WARNING: UnusedPrivateMethod

The method createRequiredTypeProposal(Binding, int, int, int) from the type CompletionEngine is never used locally

CompletionEngine.java :

4079 : private CompletionProposal createRequiredTypeProposal(Binding binding, int start, int end, int relevance) {

6. WARNING: UnusedPrivateMethod

The method createMethod(MethodBinding, char[][], char[][], char[][], StringBuffer) from the type CompletionEngine is never used locally

CompletionEngine.java :

4398 : private void createMethod(MethodBinding method, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, StringBuffer completion) {

7. WARNING: LocalVariableIsNeverUsed

The value of the local variable depth is not used

CompletionEngine.java :

6092 : int depth = 0;

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 :

109 : 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/codeassist/select/SelectionParser.java
1. WARNING: DeadCode

Dead code

SelectionParser.java :

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

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

The value of the local variable args is not used

SourceElementParser.java :

563 : Expression[] args = messageSend.arguments;

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 :

245 : int invocationStatus = INVOCATION_ARGUMENT_OK;

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable dimensions is not used

ASTNode.java :

271 : 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/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 :

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

46. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

47. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

48. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

49. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

50. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

51. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

52. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

53. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

54. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

55. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

56. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

57. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

58. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

59. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

60. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

61. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

62. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

63. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

64. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

65. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

66. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

67. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

68. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

69. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

70. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

71. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

72. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

73. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

74. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

75. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

76. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

77. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

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

78. WARNING: DeadCode

Dead code

UnconditionalFlowInfo.java :

1506 : 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 sourceType is not used

BlockScope.java :

631 : SourceTypeBinding sourceType = currentMethodScope.enclosingSourceType();

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 :

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

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable declaringClass is not used

ClassScope.java :

383 : final ReferenceBinding declaringClass = fieldBinding.declaringClass;

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

Dead code

FieldBinding.java :

68 : 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 :

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

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

The import org.eclipse.wst.jsdt.internal.compiler.ast.Statement is never used

MethodScope.java :

23 : import org.eclipse.wst.jsdt.internal.compiler.ast.Statement;

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable declaringClass is not used

MethodScope.java :

137 : 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 :

508 : ReferenceBinding[] interfacesToVisit = null;

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable nextPosition is not used

ReferenceBinding.java :

509 : int nextPosition = 0;

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

Dead code

Scope.java :

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

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable declaringClass is not used

Scope.java :

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

3. WARNING: DeadCode

Dead code

Scope.java :

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

4. WARNING: DeadCode

Dead code

Scope.java :

1720 : return insideProblem;

5. WARNING: LocalVariableIsNeverUsed

The value of the local variable insideStaticContext is not used

Scope.java :

2042 : boolean insideStaticContext = false;

6. WARNING: LocalVariableIsNeverUsed

The value of the local variable invalidInvocations is not used

Scope.java :

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

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

The value of the local variable isOtherTypeSourceType is not used

SourceTypeBinding.java :

1323 : final boolean isOtherTypeSourceType = otherType instanceof SourceTypeBinding;

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 :

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

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

Dead code

Parser.java :

1094 : 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 :

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

3. WARNING: LocalVariableIsNeverUsed

The value of the local variable arrayInitializer is not used

Parser.java :

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

4. WARNING: LocalVariableIsNeverUsed

The value of the local variable prevAct is not used

Parser.java :

5662 : int prevAct = START_STATE,

5. WARNING: DeadCode

Dead code

Parser.java :

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

6. WARNING: DeadCode

Dead code

Parser.java :

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

7. WARNING: DeadCode

Dead code

Parser.java :

6043 : 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 :

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

9. WARNING: DeadCode

Dead code

Parser.java :

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

6947 : } 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 :

2846 : 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 :

2875 : 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 :

26 : 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 :

139 : boolean resolveBindings;

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable pkg is not used

ClassFile.java :

332 : 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/CompilationUnit.java
1. WARNING: LocalVariableIsNeverUsed

The value of the local variable resolveBindings is not used

CompilationUnit.java :

170 : 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 :

2508 : 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/JarEntryFile.java
1. WARNING: UnusedImport

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

JarEntryFile.java :

19 : import org.eclipse.core.resources.IStorage;

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

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

JarPackageFragment.java :

35 : import org.eclipse.wst.jsdt.core.IPackageFragment;

2. WARNING: DeadCode

Dead code

JarPackageFragment.java :

78 : if (size == 0 && false) { File file = getPath().toFile(); if (!file.isFile()) { IPath path = ResourcesPlugin.getWorkspace().getRoot().getFile(getPath()).getLocation(); if (path != null) file = path.toFile(); } if (file.isFile()) { String osPath = getPath().toOSString(); List classFiles = new ArrayList(); ZipFile zip = null; try { zip = new ZipFile(file); for (Enumeration e = zip.entries(); e.hasMoreElements();) { ZipEntry ze = (ZipEntry) e.nextElement(); if (org.eclipse.wst.jsdt.internal.compiler.util.Util.isClassFileName(ze.getName())) { classFiles.add(new ClassFile(this, ze.getName())); } } } catch (ZipException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } finally { if (zip != null) { try { zip.close(); } catch (IOException e) { // do nothing } } } return (IJavaScriptElement[]) classFiles.toArray(new ClassFile[classFiles.size()]); } }

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 :

196 : private IConfigurationElement annotationProcessorManagerFactory = null;

2. WARNING: UnusedPrivateMethod

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

JavaModelManager.java :

244 : public IIncludePathEntry[] getClasspathEntries() {

3. WARNING: UnusedPrivateMethod

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

JavaModelManager.java :

2598 : public IIncludePathEntry[] getClasspathEntries() {

4. WARNING: LocalVariableIsNeverUsed

The value of the local variable element is not used

JavaModelManager.java :

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

5. WARNING: UnusedPrivateMethod

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

JavaModelManager.java :

3013 : public IIncludePathEntry[] getClasspathEntries() {

6. WARNING: DeadCode

Dead code

JavaModelManager.java :

3240 : 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/NameLookup.java
1. WARNING: UnusedPrivateField

The value of the field NameLookup.workingCopies is not used

NameLookup.java :

180 : private IJavaScriptUnit[] workingCopies;

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable elementRequestor is not used

NameLookup.java :

2136 : JavaElementRequestor elementRequestor = new JavaElementRequestor();

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

The value of the local variable classFileName is not used

NamedMember.java :

170 : String classFileName = this.parent.getElementName();

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 :

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

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable removedPackageFolder is not used

IncrementalImageBuilder.java :

533 : 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 :

1270 : private final Prefix annotationSeparation;

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable curr is not used

ASTRewriteAnalyzer.java :

1280 : ASTNode curr= getNewNode(nodeIndex);

3. WARNING: LocalVariableIsNeverUsed

The value of the local variable pos is not used

ASTRewriteAnalyzer.java :

2482 : 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 :

249 : 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 :

280 : int numReindexedDocNames = 0;

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

The import org.eclipse.wst.jsdt.internal.core.search.processing.IJob is never used

BasicSearchEngine.java :

86 : import org.eclipse.wst.jsdt.internal.core.search.processing.IJob;

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/AddJarFileToIndex.java
1. WARNING: UnusedPrivateField

The value of the field AddJarFileToIndex.JAR_SEPARATOR is not used

AddJarFileToIndex.java :

40 : private static final char JAR_SEPARATOR = IJavaScriptSearchScope.JAR_FILE_ENTRY_SEPARATOR.charAt(0);

2. WARNING: UnusedPrivateMethod

The method isIdentifier() from the type AddJarFileToIndex is never used locally

AddJarFileToIndex.java :

237 : private boolean isIdentifier() throws InvalidInputException {

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 :

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

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

Dead code

MatchLocator.java :

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

2. WARNING: DeadCode

Dead code

MatchLocator.java :

837 : depth++;

3. WARNING: DeadCode

Dead code

MatchLocator.java :

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

4. WARNING: LocalVariableIsNeverUsed

The value of the local variable offset is not used

MatchLocator.java :

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

5. WARNING: DeadCode

Dead code

MatchLocator.java :

2548 : 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/MethodPattern.java
1. WARNING: UnusedImport

The import org.eclipse.wst.jsdt.internal.compiler.classfmt.ClassFileConstants is never used

MethodPattern.java :

17 : import org.eclipse.wst.jsdt.internal.compiler.classfmt.ClassFileConstants;

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

The import org.eclipse.wst.jsdt.internal.compiler.classfmt.ClassFileConstants is never used

TypeDeclarationPattern.java :

18 : import org.eclipse.wst.jsdt.internal.compiler.classfmt.ClassFileConstants;

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/ConvertUtility.java
1. WARNING: UnusedPrivateMethod

The method hasAValidSourcePath() from the type ConvertUtility is never used locally

ConvertUtility.java :

339 : private boolean hasAValidSourcePath() {

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

The value of the local variable rootPathLength is not used

HandleFactory.java :

122 : int rootPathLength = -1;

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/oaametadata/MetadataReader.java
1. WARNING: UnusedPrivateType

The type MessageBundleHandler is never used locally

MetadataReader.java :

804 : class MessageBundleHandler extends DefaultHandler

2. WARNING: LocalVariableIsNeverUsed

The value of the local variable inputSource is not used

MetadataReader.java :

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

Source File: org/eclipse/wst/jsdt/libraries/BasicBrowserLibraryJsGlobalScopeContainerInitializer.java
1. WARNING: UnusedPrivateField

The value of the field BasicBrowserLibraryJsGlobalScopeContainerInitializer.ContainerDescription is not used

BasicBrowserLibraryJsGlobalScopeContainerInitializer.java :

38 : private static final String ContainerDescription = Messages.BasicBrowserLibraryJsGlobalScopeContainerInitializer_ECMA3Browser;

2. WARNING: UnusedPrivateField

The value of the field BasicBrowserLibraryJsGlobalScopeContainerInitializer.FILE_DESCRIPTION0 is not used

BasicBrowserLibraryJsGlobalScopeContainerInitializer.java :

39 : private static final String FILE_DESCRIPTION0 = Messages.BasicBrowserLibraryJsGlobalScopeContainerInitializer_ECMA3DOM;

3. WARNING: UnusedPrivateField

The value of the field BasicBrowserLibraryJsGlobalScopeContainerInitializer.FILE_DESCRIPTION1 is not used

BasicBrowserLibraryJsGlobalScopeContainerInitializer.java :

40 : private static final String FILE_DESCRIPTION1 = Messages.BasicBrowserLibraryJsGlobalScopeContainerInitializer_CommonWebBrowser;