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 )
The import org.eclipse.wst.jsdt.core.dom.AST is never used
IJavaScriptUnit.java :
15 : import org.eclipse.wst.jsdt.core.dom.AST;
The import org.eclipse.core.resources.IContainer is never used
JavaScriptCore.java :
76 : import org.eclipse.core.resources.IContainer;
The import org.eclipse.core.resources.IResourceChangeEvent is never used
JavaScriptCore.java :
83 : import org.eclipse.core.resources.IResourceChangeEvent;
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;
The value of the local variable relevance is not used
CompletionEngine.java :
789 : int relevance = computeBaseRelevance();
The value of the local variable prefixRequired is not used
CompletionEngine.java :
2589 : boolean prefixRequired = false;
The value of the local variable staticsOnly is not used
CompletionEngine.java :
2828 : boolean staticsOnly = false;
The value of the local variable staticsOnly is not used
CompletionEngine.java :
2884 : boolean staticsOnly = false;
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) {
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) {
The value of the local variable depth is not used
CompletionEngine.java :
6092 : int depth = 0;
The import org.eclipse.wst.jsdt.core.Flags is never used
ISearchRequestor.java :
13 : import org.eclipse.wst.jsdt.core.Flags;
The import org.eclipse.wst.jsdt.core.IAccessRule is never used
ISearchRequestor.java :
14 : import org.eclipse.wst.jsdt.core.IAccessRule;
The value of the local variable types is not used
CompletionJavadocParser.java :
476 : TypeReference[]types=null;
The value of the local variable isTypeParam is not used
CompletionJavadocParser.java :
478 : boolean isTypeParam = false;
The value of the local variable nameReference is not used
CompletionParser.java :
363 : SingleNameReference nameReference = (SingleNameReference) expression;
The value of the local variable recoveredType is not used
CompletionParser.java :
398 : RecoveredType recoveredType = (RecoveredType)this.currentElement;
The value of the local variable kind is not used
CompletionParser.java :
403 : int kind = topKnownElementKind(COMPLETION_OR_ASSIST_PARSER);
The value of the local variable info is not used
CompletionParser.java :
404 : int info = topKnownElementInfo(COMPLETION_OR_ASSIST_PARSER);
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 {
The method classHeaderExtendsOrImplements(boolean) from the type CompletionParser is never used locally
CompletionParser.java :
1445 : private void classHeaderExtendsOrImplements(boolean isInterface) {
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 {
Dead code
CompletionScanner.java :
781 : this.eofPosition=this.cursorLocation+1;
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()) }
Dead code
SelectionParser.java :
454 : } else { this.lastCheckPoint = md.sourceStart; this.restartRecovery = true; }
The value of the local variable args is not used
SourceElementParser.java :
563 : Expression[] args = messageSend.arguments;
The value of the local variable invocationStatus is not used
ASTNode.java :
245 : int invocationStatus = INVOCATION_ARGUMENT_OK;
The value of the local variable dimensions is not used
ASTNode.java :
271 : int dimensions;
The value of the local variable argHasError is not used
AllocationExpression.java :
137 : boolean argHasError = false;
The value of the local variable dimensionType is not used
ArrayAllocationExpression.java :
86 : TypeBinding dimensionType = dimExpression.resolveTypeExpecting(scope, TypeBinding.INT);
Dead code
Block.java :
85 : (!JavaScriptCore.IS_ECMASCRIPT4 || explicitDeclarations == 0)
Dead code
Block.java :
87 : : new BlockScope(upperScope, explicitDeclarations);
The value of the local variable sourceType is not used
Clinit.java :
117 : SourceTypeBinding sourceType =
The value of the local variable actuallyThrownExceptions is not used
ConstructorDeclaration.java :
92 : ReferenceBinding[] actuallyThrownExceptions;
The value of the local variable type is not used
DoStatement.java :
133 : TypeBinding type = this.condition.resolveTypeExpecting(scope, TypeBinding.BOOLEAN);
The value of the local variable type is not used
ForInStatement.java :
183 : TypeBinding type = collection.resolveTypeExpecting(scope, TypeBinding.BOOLEAN);
The value of the local variable type is not used
ForStatement.java :
265 : TypeBinding type = condition.resolveTypeExpecting(scope, TypeBinding.BOOLEAN);
The value of the local variable type is not used
IfStatement.java :
189 : TypeBinding type = condition.resolveTypeExpecting(scope, TypeBinding.BOOLEAN);
The value of the local variable scopeModifiers is not used
Javadoc.java :
385 : int scopeModifiers = -1;
The value of the local variable scopeModifiers is not used
Javadoc.java :
553 : int scopeModifiers = -1;
The value of the local variable hasValidImport is not used
Javadoc.java :
597 : boolean hasValidImport = false;
The value of the local variable closestMatch is not used
JavadocSingleTypeReference.java :
78 : ReferenceBinding closestMatch = ((ProblemReferenceBinding)this.resolvedType).closestMatch();
The value of the local variable complyTo14 is not used
QualifiedNameReference.java :
57 : boolean complyTo14 = currentScope.compilerOptions().complianceLevel >= ClassFileConstants.JDK1_4;
The value of the local variable lastFieldBinding is not used
QualifiedNameReference.java :
58 : FieldBinding lastFieldBinding = null;
The value of the local variable lastReceiverType is not used
QualifiedNameReference.java :
92 : TypeBinding lastReceiverType;
The value of the local variable lastReceiverType is not used
QualifiedNameReference.java :
115 : TypeBinding lastReceiverType;
The value of the local variable originalBinding is not used
QualifiedNameReference.java :
239 : FieldBinding originalBinding = field.original();
The value of the local variable fieldReceiverType is not used
QualifiedNameReference.java :
325 : TypeBinding fieldReceiverType = type;
The value of the local variable originalBinding is not used
QualifiedNameReference.java :
332 : FieldBinding originalBinding = previousField.original();
The value of the local variable resolvedTypeBinding is not used
SwitchStatement.java :
100 : final TypeBinding resolvedTypeBinding = this.expression.resolvedType;
Dead code
TryStatement.java :
395 : if (JavaScriptCore.IS_ECMASCRIPT4 && finallyScope != null){
Dead code
TryStatement.java :
395 : if (JavaScriptCore.IS_ECMASCRIPT4 && finallyScope != null){ finallyScope.shiftScopes[i+1] = catchScope; }
Dead code
TryStatement.java :
422 : if (JavaScriptCore.IS_ECMASCRIPT4 && finallyScope != null){
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); }
Dead code
FileSystem.java :
213 : else { this.knownFileNames.add(new String(CharOperation.subarray(fileName, matchingPathName.length, fileName.length))); }
The value of the local variable localErrorCount is not used
Main.java :
1065 : int localErrorCount = 0;
The value of the field Main.expandedCommandLine is not used
Main.java :
1381 : private String[] expandedCommandLine;
The value of the field Main.err is not used
Main.java :
1383 : private PrintWriter err;
Dead code
NullInfoRegistry.java :
127 : if (coverageTestFlag && coverageTestId == 290) {
Dead code
NullInfoRegistry.java :
127 : if (coverageTestFlag && coverageTestId == 290) { this.nullBit1 = 0; }
Dead code
NullInfoRegistry.java :
152 : if (coverageTestFlag && coverageTestId == 300) {
Dead code
NullInfoRegistry.java :
152 : if (coverageTestFlag && coverageTestId == 300) { this.extra[5][vectorIndex] = ~0; }
Dead code
NullInfoRegistry.java :
168 : if (coverageTestFlag && coverageTestId == 290) {
Dead code
NullInfoRegistry.java :
168 : if (coverageTestFlag && coverageTestId == 290) { this.nullBit1 = 0; }
Dead code
NullInfoRegistry.java :
193 : if (coverageTestFlag && coverageTestId == 300) {
Dead code
NullInfoRegistry.java :
193 : if (coverageTestFlag && coverageTestId == 300) { this.extra[5][vectorIndex] = ~0; }
Dead code
NullInfoRegistry.java :
210 : if (coverageTestFlag && coverageTestId == 290) {
Dead code
NullInfoRegistry.java :
210 : if (coverageTestFlag && coverageTestId == 290) { this.nullBit1 = 0; }
Dead code
NullInfoRegistry.java :
235 : if (coverageTestFlag && coverageTestId == 300) {
Dead code
NullInfoRegistry.java :
235 : if (coverageTestFlag && coverageTestId == 300) { this.extra[5][vectorIndex] = ~0; }
Dead code
NullInfoRegistry.java :
251 : if (coverageTestFlag && coverageTestId == 290) {
Dead code
NullInfoRegistry.java :
251 : if (coverageTestFlag && coverageTestId == 290) { this.nullBit1 = 0; }
Dead code
NullInfoRegistry.java :
276 : if (coverageTestFlag && coverageTestId == 300) {
Dead code
NullInfoRegistry.java :
276 : if (coverageTestFlag && coverageTestId == 300) { this.extra[5][vectorIndex] = ~0; }
Dead code
UnconditionalFlowInfo.java :
114 : if (coverageTestFlag && coverageTestId == 1) {
Dead code
UnconditionalFlowInfo.java :
114 : if (coverageTestFlag && coverageTestId == 1) { this.nullBit4 = ~0; }
Dead code
UnconditionalFlowInfo.java :
147 : if (coverageTestFlag && coverageTestId == 2) {
Dead code
UnconditionalFlowInfo.java :
147 : if (coverageTestFlag && coverageTestId == 2) { this.nullBit4 = ~0; }
Dead code
UnconditionalFlowInfo.java :
169 : if (coverageTestFlag && coverageTestId == 3) {
Dead code
UnconditionalFlowInfo.java :
169 : if (coverageTestFlag && coverageTestId == 3) { throw new AssertionFailedException("COVERAGE 3"); //$NON-NLS-1$ }
Dead code
UnconditionalFlowInfo.java :
175 : if (coverageTestFlag && coverageTestId == 4) {
Dead code
UnconditionalFlowInfo.java :
175 : if (coverageTestFlag && coverageTestId == 4) { throw new AssertionFailedException("COVERAGE 4"); //$NON-NLS-1$ }
Dead code
UnconditionalFlowInfo.java :
195 : if (coverageTestFlag && coverageTestId == 5) {
Dead code
UnconditionalFlowInfo.java :
195 : if (coverageTestFlag && coverageTestId == 5) { this.extra[5][otherLength - 1] = ~0; }
Dead code
UnconditionalFlowInfo.java :
203 : if (coverageTestFlag && coverageTestId == 6) {
Dead code
UnconditionalFlowInfo.java :
203 : if (coverageTestFlag && coverageTestId == 6) { throw new AssertionFailedException("COVERAGE 6"); //$NON-NLS-1$ }
Dead code
UnconditionalFlowInfo.java :
258 : if (coverageTestFlag && coverageTestId == 7) {
Dead code
UnconditionalFlowInfo.java :
258 : if (coverageTestFlag && coverageTestId == 7) { this.extra[5][i] = ~0; }
Dead code
UnconditionalFlowInfo.java :
266 : if (coverageTestFlag && coverageTestId == 8) {
Dead code
UnconditionalFlowInfo.java :
266 : if (coverageTestFlag && coverageTestId == 8) { this.extra[5][i] = ~0; }
Dead code
UnconditionalFlowInfo.java :
371 : if (coverageTestFlag && coverageTestId == 9) {
Dead code
UnconditionalFlowInfo.java :
371 : if (coverageTestFlag && coverageTestId == 9) { this.nullBit4 = ~0; }
Dead code
UnconditionalFlowInfo.java :
384 : if (coverageTestFlag && coverageTestId == 10) {
Dead code
UnconditionalFlowInfo.java :
384 : if (coverageTestFlag && coverageTestId == 10) { this.nullBit4 = ~0; }
Dead code
UnconditionalFlowInfo.java :
399 : if (coverageTestFlag && coverageTestId == 11) {
Dead code
UnconditionalFlowInfo.java :
399 : if (coverageTestFlag && coverageTestId == 11) { throw new AssertionFailedException("COVERAGE 11"); //$NON-NLS-1$ }
Dead code
UnconditionalFlowInfo.java :
414 : if (coverageTestFlag && coverageTestId == 12) {
Dead code
UnconditionalFlowInfo.java :
414 : if (coverageTestFlag && coverageTestId == 12) { throw new AssertionFailedException("COVERAGE 12"); //$NON-NLS-1$ }
Dead code
UnconditionalFlowInfo.java :
447 : if (coverageTestFlag && coverageTestId == 13) {
Dead code
UnconditionalFlowInfo.java :
447 : if (coverageTestFlag && coverageTestId == 13) { this.nullBit4 = ~0; }
Dead code
UnconditionalFlowInfo.java :
461 : if (coverageTestFlag && coverageTestId == 14) {
Dead code
UnconditionalFlowInfo.java :
461 : if (coverageTestFlag && coverageTestId == 14) { this.extra[5][i] = ~0; }
Dead code
UnconditionalFlowInfo.java :
972 : if (coverageTestFlag && coverageTestId == 15) {
Dead code
UnconditionalFlowInfo.java :
972 : if (coverageTestFlag && coverageTestId == 15) { this.nullBit4 = ~0; }
Dead code
UnconditionalFlowInfo.java :
985 : if (coverageTestFlag && coverageTestId == 16) {
Dead code
UnconditionalFlowInfo.java :
985 : if (coverageTestFlag && coverageTestId == 16) { throw new AssertionFailedException("COVERAGE 16"); //$NON-NLS-1$ }
Dead code
UnconditionalFlowInfo.java :
998 : if (coverageTestFlag && coverageTestId == 17) {
Dead code
UnconditionalFlowInfo.java :
998 : if (coverageTestFlag && coverageTestId == 17) { throw new AssertionFailedException("COVERAGE 17"); //$NON-NLS-1$ }
Dead code
UnconditionalFlowInfo.java :
1024 : if (coverageTestFlag && coverageTestId == 18) {
Dead code
UnconditionalFlowInfo.java :
1024 : if (coverageTestFlag && coverageTestId == 18) { this.extra[5][vectorIndex] = ~0; }
Dead code
UnconditionalFlowInfo.java :
1058 : if (coverageTestFlag && coverageTestId == 19) {
Dead code
UnconditionalFlowInfo.java :
1058 : if (coverageTestFlag && coverageTestId == 19) { this.nullBit4 = ~0; }
Dead code
UnconditionalFlowInfo.java :
1072 : if (coverageTestFlag && coverageTestId == 20) {
Dead code
UnconditionalFlowInfo.java :
1072 : if (coverageTestFlag && coverageTestId == 20) { throw new AssertionFailedException("COVERAGE 20"); //$NON-NLS-1$ }
Dead code
UnconditionalFlowInfo.java :
1085 : if (coverageTestFlag && coverageTestId == 21) {
Dead code
UnconditionalFlowInfo.java :
1085 : if (coverageTestFlag && coverageTestId == 21) { throw new AssertionFailedException("COVERAGE 21"); //$NON-NLS-1$ }
Dead code
UnconditionalFlowInfo.java :
1179 : if (coverageTestFlag && coverageTestId == 22) {
Dead code
UnconditionalFlowInfo.java :
1179 : if (coverageTestFlag && coverageTestId == 22) { this.nullBit1 = 0; }
Dead code
UnconditionalFlowInfo.java :
1208 : if (coverageTestFlag && coverageTestId == 23) {
Dead code
UnconditionalFlowInfo.java :
1208 : if (coverageTestFlag && coverageTestId == 23) { this.extra[2][vectorIndex] = 0; }
Dead code
UnconditionalFlowInfo.java :
1229 : if (coverageTestFlag && coverageTestId == 24) {
Dead code
UnconditionalFlowInfo.java :
1229 : if (coverageTestFlag && coverageTestId == 24) { this.nullBit4 = ~0; }
Dead code
UnconditionalFlowInfo.java :
1241 : if (coverageTestFlag && coverageTestId == 25) {
Dead code
UnconditionalFlowInfo.java :
1241 : if (coverageTestFlag && coverageTestId == 25) { this.extra[5][vectorIndex] = ~0; }
Dead code
UnconditionalFlowInfo.java :
1269 : if (coverageTestFlag && coverageTestId == 26) {
Dead code
UnconditionalFlowInfo.java :
1269 : if (coverageTestFlag && coverageTestId == 26) { this.nullBit4 = 0; }
Dead code
UnconditionalFlowInfo.java :
1281 : if (coverageTestFlag && coverageTestId == 27) {
Dead code
UnconditionalFlowInfo.java :
1281 : if (coverageTestFlag && coverageTestId == 27) { this.extra[5][vectorIndex] = 0; }
Dead code
UnconditionalFlowInfo.java :
1290 : if (coverageTestFlag && coverageTestId == 28) {
Dead code
UnconditionalFlowInfo.java :
1290 : if (coverageTestFlag && coverageTestId == 28) { throw new AssertionFailedException("COVERAGE 28"); //$NON-NLS-1$ }
Dead code
UnconditionalFlowInfo.java :
1296 : if (coverageTestFlag && coverageTestId == 29) {
Dead code
UnconditionalFlowInfo.java :
1296 : if (coverageTestFlag && coverageTestId == 29) { throw new AssertionFailedException("COVERAGE 29"); //$NON-NLS-1$ }
Dead code
UnconditionalFlowInfo.java :
1345 : if (coverageTestFlag && coverageTestId == 30) {
Dead code
UnconditionalFlowInfo.java :
1345 : if (coverageTestFlag && coverageTestId == 30) { this.nullBit4 = ~0; }
Dead code
UnconditionalFlowInfo.java :
1354 : if (coverageTestFlag && coverageTestId == 31) {
Dead code
UnconditionalFlowInfo.java :
1354 : if (coverageTestFlag && coverageTestId == 31) { this.nullBit4 = ~0; }
Dead code
UnconditionalFlowInfo.java :
1363 : if (coverageTestFlag && coverageTestId == 32) {
Dead code
UnconditionalFlowInfo.java :
1363 : if (coverageTestFlag && coverageTestId == 32) { this.nullBit4 = ~0; }
Dead code
UnconditionalFlowInfo.java :
1390 : if (coverageTestFlag && coverageTestId == 33) {
Dead code
UnconditionalFlowInfo.java :
1390 : if (coverageTestFlag && coverageTestId == 33) { throw new AssertionFailedException("COVERAGE 33"); //$NON-NLS-1$ }
Dead code
UnconditionalFlowInfo.java :
1398 : if (coverageTestFlag && coverageTestId == 34) {
Dead code
UnconditionalFlowInfo.java :
1398 : if (coverageTestFlag && coverageTestId == 34) { throw new AssertionFailedException("COVERAGE 34"); //$NON-NLS-1$ }
Dead code
UnconditionalFlowInfo.java :
1405 : if (coverageTestFlag && coverageTestId == 35) {
Dead code
UnconditionalFlowInfo.java :
1405 : if (coverageTestFlag && coverageTestId == 35) { throw new AssertionFailedException("COVERAGE 35"); //$NON-NLS-1$ }
Dead code
UnconditionalFlowInfo.java :
1420 : if (coverageTestFlag && coverageTestId == 36) {
Dead code
UnconditionalFlowInfo.java :
1420 : if (coverageTestFlag && coverageTestId == 36) { throw new AssertionFailedException("COVERAGE 36"); //$NON-NLS-1$ }
Dead code
UnconditionalFlowInfo.java :
1479 : if (coverageTestFlag && coverageTestId == 37) {
Dead code
UnconditionalFlowInfo.java :
1479 : if (coverageTestFlag && coverageTestId == 37) { this.extra[5][i] = ~0; }
Dead code
UnconditionalFlowInfo.java :
1492 : if (coverageTestFlag && coverageTestId == 38) {
Dead code
UnconditionalFlowInfo.java :
1492 : if (coverageTestFlag && coverageTestId == 38) { this.extra[5][i] = ~0; }
Dead code
UnconditionalFlowInfo.java :
1506 : if (coverageTestFlag && coverageTestId == 39) {
Dead code
UnconditionalFlowInfo.java :
1506 : if (coverageTestFlag && coverageTestId == 39) { this.extra[5][i] = ~0; }
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; }
The value of the local variable methodModifiers is not used
BinaryTypeBinding.java :
290 : int methodModifiers = method.getModifiers() | ExtraCompilerModifiers.AccUnresolved;
The value of the local variable keepBridgeMethods is not used
BinaryTypeBinding.java :
434 : boolean keepBridgeMethods = sourceLevel < ClassFileConstants.JDK1_5
The value of the local variable keepBridgeMethods is not used
BinaryTypeBinding.java :
434 : boolean keepBridgeMethods = sourceLevel < ClassFileConstants.JDK1_5
The value of the local variable sourceType is not used
BlockScope.java :
631 : SourceTypeBinding sourceType = currentMethodScope.enclosingSourceType();
The value of the local variable existingType is not used
ClassScope.java :
283 : ReferenceBinding existingType = packageBinding.getType0(className[className.length - 1]);
The value of the local variable declaringClass is not used
ClassScope.java :
383 : final ReferenceBinding declaringClass = fieldBinding.declaringClass;
Dead code
FieldBinding.java :
68 : SourceTypeBinding invocationType = scope.enclosingSourceType();
The value of the local variable bound is not used
LookupEnvironment.java :
973 : TypeBinding bound = getTypeFromTypeSignature(wrapper, enclosingType);
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;
The value of the local variable declaringClass is not used
MethodScope.java :
137 : final ReferenceBinding declaringClass = methodBinding.declaringClass;
The value of the local variable name is not used
MultipleTypeBinding.java :
27 : char [][] name={};
The value of the local variable interfacesToVisit is not used
ReferenceBinding.java :
508 : ReferenceBinding[] interfacesToVisit = null;
The value of the local variable nextPosition is not used
ReferenceBinding.java :
509 : int nextPosition = 0;
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; }
The value of the local variable declaringClass is not used
Scope.java :
799 : ReferenceBinding declaringClass = candidates[0].declaringClass;
Dead code
Scope.java :
1374 : return binding; // answer the better problem binding
Dead code
Scope.java :
1720 : return insideProblem;
The value of the local variable insideStaticContext is not used
Scope.java :
2042 : boolean insideStaticContext = false;
The value of the local variable invalidInvocations is not used
Scope.java :
2307 : TypeBinding[] invalidInvocations = (TypeBinding[]) value;
The value of the local variable isOtherTypeSourceType is not used
SourceTypeBinding.java :
1323 : final boolean isOtherTypeSourceType = otherType instanceof SourceTypeBinding;
The value of the local variable start is not used
AbstractCommentParser.java :
829 : int start = this.scanner.getCurrentTokenStartPosition();
The value of the local variable start is not used
AbstractCommentParser.java :
1019 : int start = this.scanner.getCurrentTokenStartPosition();
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; }
Dead code
Parser.java :
2524 : } else { this.lastCheckPoint = md.sourceStart; this.restartRecovery = true; }
The value of the local variable arrayInitializer is not used
Parser.java :
5233 : ArrayInitializer arrayInitializer = (ArrayInitializer) this.expressionStack[this.expressionPtr--];
The value of the local variable prevAct is not used
Parser.java :
5662 : int prevAct = START_STATE,
Dead code
Parser.java :
5813 : if (DEBUG_AUTOMATON && act <= NUM_RULES) {
Dead code
Parser.java :
5813 : if (DEBUG_AUTOMATON && act <= NUM_RULES) { System.out.print(" - "); //$NON-NLS-1$ }
Dead code
Parser.java :
6043 : System.out.println("parsing "+new String(sourceUnit.getFileName())); //$NON-NLS-1$
The method visit(TypeDeclaration, Scope) from the type MethodVisitor is never used locally
Parser.java :
6544 : public boolean visit(TypeDeclaration typeDeclaration, Scope scope) {
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; } } } }
Dead code
Parser.java :
6947 : } else { return false; }
Dead code
SourceTypeConverter.java :
151 : int start = topLevelTypeInfo.getNameSourceStart();
The value of the local variable kind is not used
SourceTypeConverter.java :
469 : int kind = TypeDeclaration.kind(type.modifiers);
The value of the local variable kind is not used
SourceTypeConverter.java :
469 : int kind = TypeDeclaration.kind(type.modifiers);
The value of the local variable kind is not used
SourceTypeConverter.java :
469 : int kind = TypeDeclaration.kind(type.modifiers);
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) {
The method getSource() from the type SourceTypeConverter is never used locally
SourceTypeConverter.java :
849 : private char[] getSource() {
The method parseMemberValue(char[]) from the type SourceTypeConverter is never used locally
SourceTypeConverter.java :
855 : private Expression parseMemberValue(char[] memberValue) {
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) {
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) {
The import org.eclipse.wst.jsdt.core.IIncludePathEntry is never used
Util.java :
26 : import org.eclipse.wst.jsdt.core.IIncludePathEntry;
The value of the local variable dotBasedSignature is not used
BinaryMethod.java :
70 : char[] dotBasedSignature = CharOperation.replaceOnCopy(genericSignature, '/', '.');
The value of the local variable modifiers is not used
BinaryMethod.java :
178 : int modifiers = this.getFlags();
The value of the local variable resolveBindings is not used
ClassFile.java :
139 : boolean resolveBindings;
The value of the local variable pkg is not used
ClassFile.java :
332 : JavaElement pkg = (JavaElement) getParent();
The value of the local variable hasSource is not used
ClasspathEntry.java :
1275 : boolean hasSource = false;
The value of the local variable hasLibFolder is not used
ClasspathEntry.java :
1276 : boolean hasLibFolder = false;
The value of the local variable potentialNestedOutput is not used
ClasspathEntry.java :
1293 : IPath potentialNestedOutput = null; // for error reporting purpose
The value of the local variable sourceEntryCount is not used
ClasspathEntry.java :
1294 : int sourceEntryCount = 0;
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));
The value of the local variable prereqProject is not used
ClasspathEntry.java :
1629 : IJavaScriptProject prereqProject = JavaScriptCore.create(prereqProjectRsc);
The value of the local variable resolveBindings is not used
CompilationUnit.java :
170 : boolean resolveBindings;
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) {
The value of the local variable project is not used
DeltaProcessor.java :
2508 : IJavaScriptProject project = element.getJavaScriptProject();
Dead code
DocumentContextFragmentRoot.java :
81 : if(DEBUG && !shown) {
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(); } }
The import org.eclipse.core.resources.IStorage is never used
JarEntryFile.java :
19 : import org.eclipse.core.resources.IStorage;
The import org.eclipse.wst.jsdt.core.IPackageFragment is never used
JarPackageFragment.java :
35 : import org.eclipse.wst.jsdt.core.IPackageFragment;
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()]); } }
The method equals(char[][][], char[][][]) from the type JavaElementDeltaBuilder is never used locally
JavaElementDeltaBuilder.java :
154 : private boolean equals(char[][][] first, char[][][] second) {
The value of the field JavaModelManager.annotationProcessorManagerFactory is not used
JavaModelManager.java :
196 : private IConfigurationElement annotationProcessorManagerFactory = null;
The method getClasspathEntries() from the type new IJsGlobalScopeContainer(){} is never used locally
JavaModelManager.java :
244 : public IIncludePathEntry[] getClasspathEntries() {
The method getClasspathEntries() from the type JavaModelManager.PersistedJsGlobalScopeContainer is never used locally
JavaModelManager.java :
2598 : public IIncludePathEntry[] getClasspathEntries() {
The value of the local variable element is not used
JavaModelManager.java :
2926 : IJavaScriptElement element = (IJavaScriptElement)entry.getKey();
The method getClasspathEntries() from the type new IJsGlobalScopeContainer(){} is never used locally
JavaModelManager.java :
3013 : public IIncludePathEntry[] getClasspathEntries() {
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); } } }
The value of the field NameLookup.workingCopies is not used
NameLookup.java :
180 : private IJavaScriptUnit[] workingCopies;
The value of the local variable elementRequestor is not used
NameLookup.java :
2136 : JavaElementRequestor elementRequestor = new JavaElementRequestor();
The value of the local variable classFileName is not used
NamedMember.java :
170 : String classFileName = this.parent.getElementName();
The value of the local variable segmentCount is not used
AbstractImageBuilder.java :
152 : final int segmentCount = sourceLocation.sourceFolder.getFullPath().segmentCount();
The value of the local variable isOutputFolder is not used
AbstractImageBuilder.java :
154 : final boolean isOutputFolder = sourceLocation.sourceFolder.equals(outputFolder);
The value of the local variable definedTypeNames is not used
IncrementalImageBuilder.java :
319 : char[][] definedTypeNames = newState.getDefinedTypeNamesFor(typeLocator);
The value of the local variable removedPackageFolder is not used
IncrementalImageBuilder.java :
533 : IFolder removedPackageFolder = md.binaryFolder.getFolder(removedPackagePath);
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)); }
The value of the field ASTRewriteAnalyzer.ModifierRewriter.annotationSeparation is not used
ASTRewriteAnalyzer.java :
1270 : private final Prefix annotationSeparation;
The value of the local variable curr is not used
ASTRewriteAnalyzer.java :
1280 : ASTNode curr= getNewNode(nodeIndex);
The value of the local variable pos is not used
ASTRewriteAnalyzer.java :
2482 : int pos= rewriteJavadoc(node, PackageDeclaration.JAVADOC_PROPERTY);
The value of the field ImportRewriteAnalyzer.isRewriteExisting is not used
ImportRewriteAnalyzer.java :
67 : private boolean isRewriteExisting=true;
The method createOnPlaceholderEntry(String) from the type ImportRewriteAnalyzer.PackageEntry is never used locally
ImportRewriteAnalyzer.java :
851 : public static PackageEntry createOnPlaceholderEntry(String preferenceOrder) {
The method getLast() from the type ImportRewriteAnalyzer.PackageEntry is never used locally
ImportRewriteAnalyzer.java :
1014 : public ImportDeclEntry getLast() {
The value of the local variable elementName is not used
HierarchyBuilder.java :
249 : final char[] elementName = handle.getElementName().toCharArray();
The value of the local variable numReindexedDocNames is not used
DiskIndex.java :
280 : int numReindexedDocNames = 0;
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;
The value of the local variable root is not used
HierarchyScope.java :
84 : IPackageFragmentRoot root = (IPackageFragmentRoot)type.getPackageFragment().getParent();
The value of the local variable workspaceRoot is not used
HierarchyScope.java :
118 : IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
The value of the local variable workspaceRoot is not used
HierarchyScope.java :
118 : IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
The value of the local variable root is not used
HierarchyScope.java :
126 : IPackageFragmentRoot root =
The value of the local variable root is not used
HierarchyScope.java :
126 : IPackageFragmentRoot root =
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);
The method isIdentifier() from the type AddJarFileToIndex is never used locally
AddJarFileToIndex.java :
237 : private boolean isIdentifier() throws InvalidInputException {
The method getSimpleName(char[]) from the type SourceIndexerRequestor is never used locally
SourceIndexerRequestor.java :
254 : private char[] getSimpleName(char[] typeName) {
Dead code
MatchLocator.java :
831 : if (lastTypeArguments != null) { for (int i=lastTypeArguments.length-1; i>=0 && last==null; i++) { last = lastTypeArguments[i]; } }
Dead code
MatchLocator.java :
837 : depth++;
Dead code
MatchLocator.java :
998 : : (INameEnvironment) new JavaSearchNameEnvironment(project, this.workingCopies);
The value of the local variable offset is not used
MatchLocator.java :
2364 : int offset = 0;//element.g;
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 {
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;
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;
The method getTypeBindingArguments() from the type BindingKeyResolver is never used locally
BindingKeyResolver.java :
311 : private TypeBinding[] getTypeBindingArguments() {
The method hasAValidSourcePath() from the type ConvertUtility is never used locally
ConvertUtility.java :
339 : private boolean hasAValidSourcePath() {
The value of the local variable rootPathLength is not used
HandleFactory.java :
122 : int rootPathLength = -1;
The value of the field KeyToSignature.typeSigStart is not used
KeyToSignature.java :
33 : private int typeSigStart = -1;
The value of the local variable typeArgsCount is not used
Util.java :
2466 : int typeArgsCount = 0;
The type MessageBundleHandler is never used locally
MetadataReader.java :
804 : class MessageBundleHandler extends DefaultHandler
The value of the local variable inputSource is not used
MetadataReader.java :
846 : InputSource inputSource = new InputSource(new FileReader(file));
Dead code
JavaRuntime.java :
422 : if (install != null) { install.getVMInstallType().disposeVMInstall(install.getId()); }
The value of the field BasicBrowserLibraryJsGlobalScopeContainerInitializer.ContainerDescription is not used
BasicBrowserLibraryJsGlobalScopeContainerInitializer.java :
38 : private static final String ContainerDescription = Messages.BasicBrowserLibraryJsGlobalScopeContainerInitializer_ECMA3Browser;
The value of the field BasicBrowserLibraryJsGlobalScopeContainerInitializer.FILE_DESCRIPTION0 is not used
BasicBrowserLibraryJsGlobalScopeContainerInitializer.java :
39 : private static final String FILE_DESCRIPTION0 = Messages.BasicBrowserLibraryJsGlobalScopeContainerInitializer_ECMA3DOM;
The value of the field BasicBrowserLibraryJsGlobalScopeContainerInitializer.FILE_DESCRIPTION1 is not used
BasicBrowserLibraryJsGlobalScopeContainerInitializer.java :
40 : private static final String FILE_DESCRIPTION1 = Messages.BasicBrowserLibraryJsGlobalScopeContainerInitializer_CommonWebBrowser;