Compiler Report

Compiler: Eclipse Compiler for Java(TM) Version: 0.A58, 3.6.0

Number of source files: 1096 Number of classfiles: 1335

Problems: 269 (Errors: 0 Warnings: 269 )

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 local variable method is never read

InferEngine.java :

636 : InferredMethod method = type.addConstructorMethod(type.name, methodDeclaration, nameStart);

2. WARNING: LocalVariableIsNeverUsed

The local variable method is never read

InferEngine.java :

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

3. WARNING: LocalVariableIsNeverUsed

The local variable method is never read

InferEngine.java :

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

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

The local variable switchStatement is never read

CompletionEngine.java :

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

2. WARNING: LocalVariableIsNeverUsed

The local variable onlyStatic is never read

CompletionEngine.java :

1895 : boolean onlyStatic = false;

3. WARNING: LocalVariableIsNeverUsed

The local variable receiverType is never read

CompletionEngine.java :

1896 : TypeBinding receiverType = null;

4. WARNING: UnusedPrivateMethod

The method computeTypesIfCorrect(Expression[]) from the type CompletionEngine is never used locally

CompletionEngine.java :

2455 : private TypeBinding[] computeTypesIfCorrect(Expression[] arguments) {

5. WARNING: UnusedPrivateMethod

The method findEnclosingTypeNames(Scope) from the type CompletionEngine is never used locally

CompletionEngine.java :

3001 : private char[][] findEnclosingTypeNames(Scope scope){

6. WARNING: UnusedPrivateMethod

The method findImportsOfStaticFields(char[], ReferenceBinding) from the type CompletionEngine is never used locally

CompletionEngine.java :

3927 : private void findImportsOfStaticFields(char[] fieldName, ReferenceBinding ref) {

7. WARNING: UnusedPrivateMethod

The method findImportsOfStaticMethods(char[], ReferenceBinding) from the type CompletionEngine is never used locally

CompletionEngine.java :

3980 : private void findImportsOfStaticMethods(char[] methodName, ReferenceBinding ref) {

8. WARNING: UnusedPrivateMethod

The method findMemberTypes(char[], ReferenceBinding[], ObjectVector, ReferenceBinding, SourceTypeBinding, boolean, boolean, boolean, boolean, Scope) from the type CompletionEngine is never used locally

CompletionEngine.java :

4277 : private void findMemberTypes( char[] typeName, ReferenceBinding[] memberTypes, ObjectVector typesFound, ReferenceBinding receiverType, SourceTypeBinding invocationType, boolean staticOnly, boolean staticFieldsAndMethodOnly, boolean fromStaticImport, boolean checkQualification, Scope scope) {

9. WARNING: LocalVariableIsNeverUsed

The local variable currentType is never read

CompletionEngine.java :

4420 : ReferenceBinding currentType = receiverType;

10. WARNING: LocalVariableIsNeverUsed

The local variable currentType is never read

CompletionEngine.java :

4476 : ReferenceBinding currentType = receiverType;

11. WARNING: DeadCode

Dead code

CompletionEngine.java :

5846 : if (token.length == 0 && NO_TYPE_COMPLETION_ON_EMPTY_TOKEN) { if(!assistNodeIsConstructor && (this.assistNodeInJavadoc & CompletionOnJavadoc.EXCEPTION) == 0) { return; } skip = true; }

12. WARNING: LocalVariableIsNeverUsed

The local variable isStatic is never read

CompletionEngine.java :

6843 : boolean isStatic = true;

13. WARNING: LocalVariableIsNeverUsed

The local variable b is never read

CompletionEngine.java :

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

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

The local variable types is never read

CompletionJavadocParser.java :

476 : TypeReference[]types=null;

2. WARNING: LocalVariableIsNeverUsed

The local variable isTypeParam is never read

CompletionJavadocParser.java :

478 : boolean isTypeParam = false;

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

The local variable nameReference is never read

CompletionParser.java :

360 : SingleNameReference nameReference = (SingleNameReference) expression;

2. WARNING: LocalVariableIsNeverUsed

The local variable recoveredType is never read

CompletionParser.java :

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

3. WARNING: LocalVariableIsNeverUsed

The local variable kind is never read

CompletionParser.java :

400 : int kind = topKnownElementKind(COMPLETION_OR_ASSIST_PARSER);

4. WARNING: LocalVariableIsNeverUsed

The local variable info is never read

CompletionParser.java :

401 : int info = topKnownElementInfo(COMPLETION_OR_ASSIST_PARSER);

5. WARNING: DeadCode

Dead code

CompletionParser.java :

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

1442 : private void classHeaderExtendsOrImplements(boolean isInterface) {

7. WARNING: DeadCode

Dead code

CompletionParser.java :

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

783 : 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/ArrayAllocationExpression.java
1. WARNING: LocalVariableIsNeverUsed

The local variable dimensionType is never read

ArrayAllocationExpression.java :

102 : 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 local variable sourceType is never read

Clinit.java :

117 : SourceTypeBinding sourceType =

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

The local variable actuallyThrownExceptions is never read

ConstructorDeclaration.java :

100 : ReferenceBinding[] actuallyThrownExceptions;

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

The local variable type is never read

DoStatement.java :

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

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

The local variable qTb is never read

ExplicitConstructorCall.java :

228 : TypeBinding qTb = qualification.resolveTypeExpecting(scope, enclosingType);

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

The local variable originalBinding is never read

FieldReference.java :

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

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

The local variable type is never read

ForInStatement.java :

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

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

The local variable type is never read

ForStatement.java :

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

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

The local variable type is never read

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 local variable scopeModifiers is never read

Javadoc.java :

385 : int scopeModifiers = -1;

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

The local variable closestMatch is never read

JavadocSingleTypeReference.java :

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

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

The local variable complyTo14 is never read

QualifiedNameReference.java :

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

2. WARNING: LocalVariableIsNeverUsed

The local variable lastFieldBinding is never read

QualifiedNameReference.java :

60 : FieldBinding lastFieldBinding = null;

3. WARNING: LocalVariableIsNeverUsed

The local variable lastReceiverType is never read

QualifiedNameReference.java :

94 : TypeBinding lastReceiverType;

4. WARNING: LocalVariableIsNeverUsed

The local variable lastReceiverType is never read

QualifiedNameReference.java :

117 : TypeBinding lastReceiverType;

5. WARNING: LocalVariableIsNeverUsed

The local variable originalBinding is never read

QualifiedNameReference.java :

241 : FieldBinding originalBinding = field.original();

6. WARNING: LocalVariableIsNeverUsed

The local variable fieldReceiverType is never read

QualifiedNameReference.java :

327 : TypeBinding fieldReceiverType = type;

7. WARNING: LocalVariableIsNeverUsed

The local variable originalBinding is never read

QualifiedNameReference.java :

334 : FieldBinding originalBinding = previousField.original();

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

The local variable resolvedTypeBinding is never read

SwitchStatement.java :

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

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

Dead code

TryStatement.java :

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

2. WARNING: DeadCode

Dead code

TryStatement.java :

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

3. WARNING: DeadCode

Dead code

TryStatement.java :

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

4. WARNING: DeadCode

Dead code

TryStatement.java :

428 : 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: UnusedPrivateField

The field Main.expandedCommandLine is never read locally

Main.java :

1381 : private String[] expandedCommandLine;

2. WARNING: UnusedPrivateField

The field Main.err is never read locally

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 local variable keepBridgeMethods is never read

BinaryTypeBinding.java :

434 : boolean keepBridgeMethods = sourceLevel < ClassFileConstants.JDK1_5

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

The local variable realModifiers is never read

BlockScope.java :

184 : int realModifiers = modifiers & ExtraCompilerModifiers.AccJustFlag;

2. WARNING: LocalVariableIsNeverUsed

The local variable sourceType is never read

BlockScope.java :

649 : SourceTypeBinding sourceType = currentMethodScope.enclosingSourceType();

3. WARNING: LocalVariableIsNeverUsed

The local variable nestedEnclosingType is never read

BlockScope.java :

698 : NestedTypeBinding nestedEnclosingType = (NestedTypeBinding) enclosingType;

4. WARNING: LocalVariableIsNeverUsed

The local variable count is never read

BlockScope.java :

713 : int count = 1;

5. WARNING: LocalVariableIsNeverUsed

The local variable currentEnclosingType is never read

BlockScope.java :

714 : ReferenceBinding currentEnclosingType;

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 local variable bound is never read

LookupEnvironment.java :

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

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

The local variable previousBinding is never read

MetatdataTypeBinding.java :

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

2. WARNING: LocalVariableIsNeverUsed

The local variable argCount is never read

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 local variable leafType is never read

MetatdataTypeBinding.java :

818 : TypeBinding leafType = parameterType.leafComponentType();

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

The local variable name is never read

MultipleTypeBinding.java :

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

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

The local variable interfacesToVisit is never read

ReferenceBinding.java :

510 : ReferenceBinding[] interfacesToVisit = null;

2. WARNING: LocalVariableIsNeverUsed

The local variable nextPosition is never read

ReferenceBinding.java :

511 : int nextPosition = 0;

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

The local variable nextPosition is never read

Scope.java :

451 : int nextPosition = 0;

2. WARNING: DeadCode

Dead code

Scope.java :

541 : 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 local variable declaringClass is never read

Scope.java :

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

4. WARNING: DeadCode

Dead code

Scope.java :

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

5. WARNING: DeadCode

Dead code

Scope.java :

1671 : return insideProblem;

6. WARNING: DeadCode

Dead code

Scope.java :

2027 : return foundType;

7. WARNING: DeadCode

Dead code

Scope.java :

2047 : return foundType; // problem type from above supercedes NotFound type but not Ambiguous import case

8. WARNING: LocalVariableIsNeverUsed

The local variable foundInImport is never read

Scope.java :

2084 : boolean foundInImport = false;

9. WARNING: LocalVariableIsNeverUsed

The local variable type is never read

Scope.java :

2085 : Binding type = null;

10. WARNING: LocalVariableIsNeverUsed

The local variable invalidInvocations is never read

Scope.java :

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

11. WARNING: DeadCode

Dead code

Scope.java :

2823 : 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 local variable argCount is never read

SourceTypeBinding.java :

447 : int argCount = argumentTypes.length;

2. WARNING: DeadCode

Dead code

SourceTypeBinding.java :

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

3. WARNING: DeadCode

Dead code

SourceTypeBinding.java :

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

4. WARNING: DeadCode

Dead code

SourceTypeBinding.java :

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

5. WARNING: LocalVariableIsNeverUsed

The local variable leafType is never read

SourceTypeBinding.java :

1162 : TypeBinding leafType = parameterType.leafComponentType();

6. WARNING: LocalVariableIsNeverUsed

The local variable leafType is never read

SourceTypeBinding.java :

1201 : TypeBinding leafType = methodType.leafComponentType();

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

The local variable start is never read

AbstractCommentParser.java :

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

2. WARNING: LocalVariableIsNeverUsed

The local variable start is never read

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 :

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

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

3. WARNING: LocalVariableIsNeverUsed

The local variable prevAct is never read

Parser.java :

5624 : int prevAct = START_STATE,

4. WARNING: DeadCode

Dead code

Parser.java :

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

5. WARNING: DeadCode

Dead code

Parser.java :

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

6. WARNING: DeadCode

Dead code

Parser.java :

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

7. WARNING: UnusedPrivateMethod

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

Parser.java :

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

8. WARNING: DeadCode

Dead code

Parser.java :

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

9. WARNING: DeadCode

Dead code

Parser.java :

6905 : } 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 local variable kind is never read

SourceTypeConverter.java :

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

3. 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) {

4. WARNING: UnusedPrivateMethod

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

SourceTypeConverter.java :

849 : private char[] getSource() {

5. 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/core/BinaryMethod.java
1. WARNING: LocalVariableIsNeverUsed

The local variable dotBasedSignature is never read

BinaryMethod.java :

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

2. WARNING: LocalVariableIsNeverUsed

The local variable modifiers is never read

BinaryMethod.java :

178 : int modifiers = this.getFlags();

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

The local variable resolveBindings is never read

ClassFile.java :

137 : boolean resolveBindings;

2. WARNING: LocalVariableIsNeverUsed

The local variable pkg is never read

ClassFile.java :

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

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

The local variable hasSource is never read

ClasspathEntry.java :

1275 : boolean hasSource = false;

2. WARNING: LocalVariableIsNeverUsed

The local variable potentialNestedOutput is never read

ClasspathEntry.java :

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

3. WARNING: LocalVariableIsNeverUsed

The local variable disableCustomOutputLocations is never read

ClasspathEntry.java :

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

4. WARNING: LocalVariableIsNeverUsed

The local variable prereqProject is never read

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 local variable resolveBindings is never read

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 local variable project is never read

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 field JavaModelManager.annotationProcessorManagerFactory is never read locally

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 local variable element is never read

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 :

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

2. WARNING: LocalVariableIsNeverUsed

The local variable rscPath is never read

JavaProject.java :

3153 : IFolder rscPath = this.project.getFolder(JavaProject.SHARED_PROPERTIES_DIRECTORY);

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

The local variable elementRequestor is never read

NameLookup.java :

2152 : JavaElementRequestor elementRequestor = new JavaElementRequestor();

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

Dead code

SearchableEnvironment.java :

78 : 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 local variable segmentCount is never read

AbstractImageBuilder.java :

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

2. WARNING: LocalVariableIsNeverUsed

The local variable isOutputFolder is never read

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 local variable definedTypeNames is never read

IncrementalImageBuilder.java :

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

2. WARNING: LocalVariableIsNeverUsed

The local variable removedPackageFolder is never read

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 field ASTRewriteAnalyzer.ModifierRewriter.annotationSeparation is never read locally

ASTRewriteAnalyzer.java :

1255 : private final Prefix annotationSeparation;

2. WARNING: LocalVariableIsNeverUsed

The local variable curr is never read

ASTRewriteAnalyzer.java :

1265 : ASTNode curr= getNewNode(nodeIndex);

3. WARNING: LocalVariableIsNeverUsed

The local variable pos is never read

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 field ImportRewriteAnalyzer.isRewriteExisting is never read locally

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 local variable elementName is never read

HierarchyBuilder.java :

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

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

The local variable enclosingTypeNames is never read

BasicSearchEngine.java :

757 : char[][] enclosingTypeNames;

2. WARNING: LocalVariableIsNeverUsed

The local variable enclosingTypeNames is never read

BasicSearchEngine.java :

801 : char[][] enclosingTypeNames;

3. WARNING: LocalVariableIsNeverUsed

The local variable kind is never read

BasicSearchEngine.java :

809 : int kind;

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

The local variable root is never read

HierarchyScope.java :

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

2. WARNING: LocalVariableIsNeverUsed

The local variable workspaceRoot is never read

HierarchyScope.java :

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

3. WARNING: LocalVariableIsNeverUsed

The local variable root is never read

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 local variable constructorBinding is never read

ConstructorLocator.java :

207 : MethodBinding constructorBinding = null;

2. WARNING: LocalVariableIsNeverUsed

The local variable isSynthetic is never read

ConstructorLocator.java :

208 : boolean isSynthetic = false;

3. WARNING: LocalVariableIsNeverUsed

The local variable call is never read

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 :

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

2. WARNING: DeadCode

Dead code

MatchLocator.java :

817 : depth++;

3. WARNING: DeadCode

Dead code

MatchLocator.java :

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

4. WARNING: LocalVariableIsNeverUsed

The local variable offset is never read

MatchLocator.java :

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

5. WARNING: DeadCode

Dead code

MatchLocator.java :

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

The method parseWildcardBound() from the type BindingKeyParser is never used locally

BindingKeyParser.java :

825 : private void parseWildcardBound() {

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 :

304 : private boolean hasAValidSourcePath() {

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

The local variable separatorIndex is never read

HandleFactory.java :

85 : int separatorIndex;

2. WARNING: LocalVariableIsNeverUsed

The local variable rootPathLength is never read

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 field KeyToSignature.typeSigStart is never read locally

KeyToSignature.java :

33 : private int typeSigStart = -1;

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

The local variable kind is never read

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 local variable inputSource is never read

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