Compiler: Eclipse Java Compiler Version: 0.959, 3.5.0 rc1
Number of source files: 1877 Number of classfiles: 3817
Problems: 122 (Errors: 0 Warnings: 122 )
The local variable parent is never read
AddCustomConstructorOperation.java :
177 : final IJavaScriptElement parent= fType.getParent();
The local variable parent is never read
AddDelegateMethodsOperation.java :
163 : final IJavaScriptElement parent= fType.getParent();
The local variable version is never read
StubUtility2.java :
70 : String version= binding.getJavaElement().getJavaScriptProject().getOption(JavaScriptCore.COMPILER_COMPLIANCE, true);
The local variable prev is never read
ASTFlattener.java :
1392 : BodyDeclaration prev= null;
The local variable parent is never read
ASTNodes.java :
801 : final IJavaScriptElement parent= type.getParent();
The method clearFragment() from the type ASTFragmentFactory.FragmentFactory is never used locally
ASTFragmentFactory.java :
188 : protected final void clearFragment() {
The constructor CleanUpRefactoring.ParseListElement(IJavaScriptUnit) is never used locally
CleanUpRefactoring.java :
118 : public ParseListElement(IJavaScriptUnit unit) {
The field CodeStyleFix.CodeStyleVisitor.fImportRewrite is never read locally
CodeStyleFix.java :
63 : private final ImportRewrite fImportRewrite;
The method getQualifier(IVariableBinding, ImportRewrite, SimpleName) from the type CodeStyleFix is never used locally
CodeStyleFix.java :
655 : private static String getQualifier(IVariableBinding binding, ImportRewrite imports, SimpleName name) {
The method getName(JavaScriptUnit, IProblemLocation) from the type CodeStyleFix is never used locally
CodeStyleFix.java :
699 : private static SimpleName getName(JavaScriptUnit compilationUnit, IProblemLocation problem) {
The field ConvertLoopFix.ControlStatementFinder.fResult is never read locally
ConvertLoopFix.java :
30 : private final List/*<IFixRewriteOperation>*/fResult;
The field ConvertLoopFix.ControlStatementFinder.fMakeFinal is never read locally
ConvertLoopFix.java :
34 : private final boolean fMakeFinal;
The field Java50Fix.OVERRIDE is never read locally
Java50Fix.java :
63 : private static final String OVERRIDE= "Override"; //$NON-NLS-1$
The field Java50Fix.DEPRECATED is never read locally
Java50Fix.java :
64 : private static final String DEPRECATED= "Deprecated"; //$NON-NLS-1$
The method getDeclaringNode(ASTNode) from the type Java50Fix is never used locally
Java50Fix.java :
421 : private static ASTNode getDeclaringNode(ASTNode selectedNode) {
Dead code
TypeContextChecker.java :
116 : RefactoringStatus[] results= new MethodTypesSyntaxChecker(fMethod, fParameterInfos, fReturnTypeInfo).checkSyntax();
Dead code
TypeContextChecker.java :
362 : int parameterCount= fParameterInfos.size();
The method visist(SuperConstructorInvocation) from the type SourceAnalyzer.UpdateCollector is never used locally
SourceAnalyzer.java :
198 : public boolean visist(SuperConstructorInvocation node) {
The method getDeclaration() from the type TargetProvider.BodyData is never used locally
TargetProvider.java :
220 : public BodyDeclaration getDeclaration() {
Dead code
ParametricStructureComputer.java :
341 : if (false) { if (v1 instanceof CollectionElementVariable2) { // if v1's container no longer has structure, remove structure from elemContainer CollectionElementVariable2 ev1= (CollectionElementVariable2) v1; ConstraintVariable2 v1Container= ev1.getParentConstraintVariable(); if (elemStructure(v1Container) == ParametricStructure.NONE) setStructureAndPush(elemContainer, ParametricStructure.NONE); return; } }
The method getTypeWithTheSameName() from the type RenameCompilationUnitProcessor is never used locally
RenameCompilationUnitProcessor.java :
344 : private IType getTypeWithTheSameName() {
The method addEmptyCusToDelete() from the type JavaDeleteProcessor is never used locally
JavaDeleteProcessor.java :
775 : private void addEmptyCusToDelete() throws JavaScriptModelException {
The method isSimpleReference() from the type MoveCuUpdateCreator.TypeReference is never used locally
MoveCuUpdateCreator.java :
401 : public boolean isSimpleReference() {
The method handleType(IType, IPackageFragment, IProgressMonitor) from the type ReorgPolicyFactory.MoveFilesFoldersAndCusPolicy is never used locally
ReorgPolicyFactory.java :
1384 : private void handleType(IType type, IPackageFragment destination, IProgressMonitor pm) {
The method getDestinationAsType() from the type ReorgPolicyFactory.SubCuElementReorgPolicy is never used locally
ReorgPolicyFactory.java :
3053 : private IType getDestinationAsType() throws JavaScriptModelException {
Dead code
ChangeSignatureRefactoring.java :
878 : buff.append(fReturnTypeInfo.getOldTypeName()) .append(' ');
Dead code
ChangeSignatureRefactoring.java :
904 : buff.append(getReturnTypeString()).append(' ');
Dead code
ChangeSignatureRefactoring.java :
979 : else if (JavaScriptCore.IS_ECMASCRIPT4 && getMethod().getDeclaringType().isInterface())
Dead code
ChangeSignatureRefactoring.java :
980 : return false;
The field ChangeSignatureRefactoring.BUG_89686 is never read locally
ChangeSignatureRefactoring.java :
1507 : private static final boolean BUG_89686= true; //see bug 83693: Search for References to methods/constructors: do ranges include parameter lists?
The local variable binding is never read
ExtractInterfaceProcessor.java :
608 : ITypeBinding binding= null;
The local variable ast is never read
HierarchyProcessor.java :
204 : final AST ast= newField.getAST();
The local variable modifier is never read
HierarchyProcessor.java :
206 : final IExtendedModifier modifier= (IExtendedModifier) oldField.modifiers().get(index);
The local variable modifiers is never read
HierarchyProcessor.java :
207 : final List modifiers= newField.modifiers();
The local variable ast is never read
HierarchyProcessor.java :
212 : final AST ast= newMethod.getAST();
The local variable modifier is never read
HierarchyProcessor.java :
214 : final IExtendedModifier modifier= (IExtendedModifier) oldMethod.modifiers().get(index);
The local variable modifiers is never read
HierarchyProcessor.java :
215 : final List modifiers= newMethod.modifiers();
The local variable project is never read
PushDownRefactoringProcessor.java :
794 : final IJavaScriptProject project= rewriter.getCu().getJavaScriptProject();
Dead code
SurroundWithTryCatchRefactoring.java :
263 : } else { fragment.setInitializer(ASTNodeFactory.newDefaultExpression(ast, binding.getType())); }
The field JavaScriptPlugin.fPropertiesFileDocumentProvider is never read locally
JavaScriptPlugin.java :
204 : private IDocumentProvider fPropertiesFileDocumentProvider;
The method getState() from the type PackagesView.LayoutAction is never used locally
PackagesView.java :
467 : public int getState() {
The method setRunnable(Runnable) from the type PackagesView.LayoutAction is never used locally
PackagesView.java :
471 : public void setRunnable(Runnable runnable) {
The method setFullyQualifyDuplicates(boolean) from the type FilteredTypesSelectionDialog.TypeInfoUtil is never used locally
FilteredTypesSelectionDialog.java :
931 : public void setFullyQualifyDuplicates(boolean value) {
The method getText(TypeNameMatch, TypeNameMatch, TypeNameMatch) from the type FilteredTypesSelectionDialog.TypeInfoUtil is never used locally
FilteredTypesSelectionDialog.java :
1000 : public String getText(TypeNameMatch last, TypeNameMatch current, TypeNameMatch next) {
The method getImageDescriptor(Object) from the type FilteredTypesSelectionDialog.TypeInfoUtil is never used locally
FilteredTypesSelectionDialog.java :
1062 : public ImageDescriptor getImageDescriptor(Object element) {
The method getFilterExtension() from the type FilteredTypesSelectionDialog.TypeItemsFilter is never used locally
FilteredTypesSelectionDialog.java :
1177 : public ITypeInfoFilterExtension getFilterExtension() {
The method matchesCachedResult(TypeNameMatch) from the type FilteredTypesSelectionDialog.TypeItemsFilter is never used locally
FilteredTypesSelectionDialog.java :
1206 : public boolean matchesCachedResult(TypeNameMatch type) {
The method matchesHistoryElement(TypeNameMatch) from the type FilteredTypesSelectionDialog.TypeItemsFilter is never used locally
FilteredTypesSelectionDialog.java :
1212 : public boolean matchesHistoryElement(TypeNameMatch type) {
The method cancel() from the type FilteredTypesSelectionDialog.TypeSearchRequestor is never used locally
FilteredTypesSelectionDialog.java :
1415 : public void cancel() {
The constructor OverrideMethodDialog.OverrideMethodComparator(ITypeBinding) is never used locally
OverrideMethodDialog.java :
197 : public OverrideMethodComparator(ITypeBinding curr) {
The method getSuperType(ITypeBinding, String) from the type OverrideMethodDialog is never used locally
OverrideMethodDialog.java :
250 : private static ITypeBinding getSuperType(final ITypeBinding binding, final String name) {
Null pointer access: The variable comparator can only be null at this location
OverrideMethodDialog.java :
321 : comparator.sort(null, typesArrays);
Dead code
TypeInfoViewer.java :
598 : System.out.println("Sleeping for: " + sleep); //$NON-NLS-1$
Dead code
TypeInfoViewer.java :
861 : fTable= new Table(parent, SWT.V_SCROLL | SWT.H_SCROLL | SWT.BORDER | SWT.FLAT | flags | (VIRTUAL ? SWT.VIRTUAL : SWT.NONE));
Dead code
JavadocView.java :
291 : if (WARNING_DIALOG_ENABLED && !doNotWarn) {
Dead code
JavadocView.java :
291 : if (WARNING_DIALOG_ENABLED && !doNotWarn) { String title= InfoViewMessages.JavadocView_error_noBrowser_title; String message= InfoViewMessages.JavadocView_error_noBrowser_message; String toggleMessage= InfoViewMessages.JavadocView_error_noBrowser_doNotWarn; MessageDialogWithToggle dialog= MessageDialogWithToggle.openError(parent.getShell(), title, message, toggleMessage, false, null, null); if (dialog.getReturnCode() == Window.OK) store.setValue(DO_NOT_WARN_PREFERENCE_KEY, dialog.getToggleState()); }
The field ClassFileEditor.SourceAttachmentForm.fFile is never read locally
ClassFileEditor.java :
93 : private final IClassFile fFile;
The method getPackageFragmentRoot(IClassFile) from the type ClassFileEditor.SourceAttachmentForm is never used locally
ClassFileEditor.java :
117 : private IPackageFragmentRoot getPackageFragmentRoot(IClassFile file) {
The method applySourceAttachment(Shell, IIncludePathEntry, IJavaScriptProject, IPath) from the type ClassFileEditor.SourceAttachmentForm is never used locally
ClassFileEditor.java :
277 : protected void applySourceAttachment(Shell shell, IIncludePathEntry newEntry, IJavaScriptProject project, IPath containerPath) {
The method createButton(Composite, String) from the type ClassFileEditor.SourceAttachmentForm is never used locally
ClassFileEditor.java :
373 : private Button createButton(Composite parent, String text) {
The field CompilationUnitEditor.BracketLevel.fOffset is never read locally
CompilationUnitEditor.java :
281 : int fOffset;
The field CompilationUnitEditor.BracketLevel.fLength is never read locally
CompilationUnitEditor.java :
282 : int fLength;
The method getCategory() from the type CompilationUnitEditor.ExclusivePositionUpdater is never used locally
CompilationUnitEditor.java :
367 : public String getCategory() {
The field JavaMoveLinesAction.SharedState.fIsChanging is never read locally
JavaMoveLinesAction.java :
62 : boolean fIsChanging= false;
The field NLSKeyHyperlink.fKeyName is never read locally
NLSKeyHyperlink.java :
38 : private final String fKeyName;
The local variable editor is never read
NLSKeyHyperlink.java :
84 : IEditorPart editor;
The method getContainerPackageFragmentRootsDeprc(PackageFragmentRootContainer, boolean) from the type PackageExplorerContentProvider is never used locally
PackageExplorerContentProvider.java :
513 : private Object[] getContainerPackageFragmentRootsDeprc(PackageFragmentRootContainer container, boolean createFolder) {
Null pointer access: The variable container can only be null at this location
PackageExplorerContentProvider.java :
571 : Object[] children = container.getChildren();
Dead code
PackageExplorerContentProvider.java :
1020 : for (int i= 0; i < affectedChildren.length; i++)
Dead code
PackageExplorerPart.java :
362 : if (!fInPreserveSelection || !(selection instanceof ITreeSelection)) { super.setSelectionToWidget(selection, reveal); return; }
The method isDeleted(Object) from the type JavaEditorHoverConfigurationBlock.JavaEditorTextHoverDescriptorContentProvider is never used locally
JavaEditorHoverConfigurationBlock.java :
139 : public boolean isDeleted(Object element) {
The method findFileByName(String) from the type JavadocConfigurationBlock.ZipDialogContentProvider is never used locally
JavadocConfigurationBlock.java :
807 : public Object findFileByName(String name) {
The method getJREVariableEntry() from the type NewJavaProjectPreferencePage is never used locally
NewJavaProjectPreferencePage.java :
279 : private static IIncludePathEntry getJREVariableEntry() {
The method getSlaves() from the type CommentsTabPage.Controller is never used locally
CommentsTabPage.java :
79 : public Collection getSlaves() {
The method add(LineWrappingTabPage.Category) from the type LineWrappingTabPage.CategoryListener is never used locally
LineWrappingTabPage.java :
128 : public void add(Category category) {
Dead code
ChangeParametersControl.java :
149 : if (JavaScriptCore.IS_ECMASCRIPT4 && property.equals(PROPERTIES[TYPE_PROP]))
Dead code
ChangeParametersControl.java :
150 : return fMode.canChangeTypes();
Dead code
ChangeParametersControl.java :
160 : if (JavaScriptCore.IS_ECMASCRIPT4 && property.equals(PROPERTIES[TYPE_PROP]))
Dead code
ChangeParametersControl.java :
161 : return ((ParameterInfo) element).getNewTypeName();
Dead code
ChangeParametersControl.java :
198 : private static final String[] PROPERTIES= JavaScriptCore.IS_ECMASCRIPT4?PROPERTIES_WITH_RETURN:PROPERTIES_NO_RETURN;
Dead code
ChangeParametersControl.java :
203 : private static final int TYPE_PROP= JavaScriptCore.IS_ECMASCRIPT4?0:-1;
Dead code
ChangeParametersControl.java :
204 : private static final int NEWNAME_PROP= JavaScriptCore.IS_ECMASCRIPT4?1:0;
Dead code
ChangeParametersControl.java :
205 : private static final int DEFAULT_PROP= JavaScriptCore.IS_ECMASCRIPT4?2:1;
Dead code
ChangeParametersControl.java :
603 : if (fMode.canChangeTypes() && (JavaScriptCore.IS_ECMASCRIPT4) ) { SubjectControlContentAssistant assistant= installParameterTypeContentAssist(editors[TYPE_PROP].getText()); editors[TYPE_PROP].setContentAssistant(assistant); }
The method restoreMessage() from the type InlineConstantWizard.InlineConstantInputPage is never used locally
InlineConstantWizard.java :
139 : protected void restoreMessage() {
Dead code
RenameInformationPopup.java :
639 : return new int[] { 0, 0, e.x - b, 0, e.x - b, e.y - b, e.x - HAO - b, e.y - b, e.x - HAO - HAW / 2, e.y + HAH - b, e.x - HAO - HAW, e.y - b, 0, e.y - b, 0, 0 };
The method isCaseSensitive() from the type JavaCommentScanner.TaskTagMatcher is never used locally
JavaCommentScanner.java :
137 : public boolean isCaseSensitive() {
Dead code
JavaIndenter.java :
239 : if (DefaultCodeFormatterConstants.TRUE.equals(getCoreFormatterOption(DefaultCodeFormatterConstants.FORMATTER_INDENT_SWITCHSTATEMENTS_COMPARE_TO_CASES))) return prefBlockIndent(); else return 0;
Dead code
JavaIndenter.java :
307 : String option= getCoreFormatterOption(DefaultCodeFormatterConstants.FORMATTER_CONTINUATION_INDENTATION);
The method isShowDefiningType() from the type JavaOutlineInformationControl.OutlineLabelProvider is never used locally
JavaOutlineInformationControl.java :
154 : public boolean isShowDefiningType() {
The method getReducedDimensionBinding(ITypeBinding, int) from the type ASTResolving is never used locally
ASTResolving.java :
335 : private static ITypeBinding getReducedDimensionBinding(ITypeBinding arrayBinding, int dimsToReduce) {
Dead code
CUCorrectionProposal.java :
135 : if (false) { throw new CoreException(JavaUIStatus.createError(IStatus.ERROR, "Implementors can throw an exception", null)); //$NON-NLS-1$ }
The field LocalCorrectionsSubProcessor.ADD_FIELD_QUALIFICATION_ID is never read locally
LocalCorrectionsSubProcessor.java :
120 : private static final String ADD_FIELD_QUALIFICATION_ID= "org.eclipse.wst.jsdt.ui.correction.qualifyField"; //$NON-NLS-1$
Dead code
LocalCorrectionsSubProcessor.java :
525 : if (false/*ASTNodes.needsParentheses(expression)*/) { ParenthesizedExpression parents= ast.newParenthesizedExpression(); parents.setExpression(expression); rewrite.replace(inst, parents, null); } else {
Null pointer access: The variable wizard can only be null at this location
NewCUCompletionUsingWizardProposal.java :
191 : wizard.init(JavaScriptPlugin.getDefault().getWorkbench(), new StructuredSelection(fCompilationUnit));
The method getConvertIterableLoopProposal(IInvocationContext, ASTNode, Collection) from the type QuickAssistProcessor is never used locally
QuickAssistProcessor.java :
1225 : private static boolean getConvertIterableLoopProposal(IInvocationContext context, ASTNode node, Collection resultingCollections) throws CoreException {
The method returnStatements() from the type ReturnTypeSubProcessor.ReturnStatementCollector is never used locally
ReturnTypeSubProcessor.java :
56 : public Iterator returnStatements() {
Dead code
JavaReconcilingStrategy.java :
92 : | (ASTProvider.SHARED_AST_STATEMENT_RECOVERY ? IJavaScriptUnit.ENABLE_STATEMENTS_RECOVERY : 0)
Dead code
JavaReconcilingStrategy.java :
93 : | (ASTProvider.SHARED_BINDING_RECOVERY ? IJavaScriptUnit.ENABLE_BINDINGS_RECOVERY : 0);
The method getProposals() from the type LazyGenericTypeProposal.TypeArgumentProposal is never used locally
LazyGenericTypeProposal.java :
164 : String getProposals() {
The method showContextMenu(Menu) from the type AnnotationExpansionControl.Item is never used locally
AnnotationExpansionControl.java :
141 : public void showContextMenu(Menu menu) {
Dead code
JavadocLinkTypeCompletionProposal.java :
42 : return "{@link " + typeReplacement; //$NON-NLS-1$
The local variable versionableElement is never read
OAADocReader.java :
27 : VersionableElement versionableElement = (documentation instanceof VersionableElement) ? (VersionableElement) documentation
The field DefaultSpellingEngine.PROPERTIES_CONTENT_TYPE is never read locally
DefaultSpellingEngine.java :
47 : private static final IContentType PROPERTIES_CONTENT_TYPE= Platform.getContentTypeManager().getContentType("org.eclipse.wst.jsdt.core.javaProperties"); //$NON-NLS-1$
The local variable fWorkspaceRoot is never read
BuildPathsBlock.java :
812 : IWorkspaceRoot fWorkspaceRoot= JavaScriptPlugin.getWorkspace().getRoot();
The field SourceContainerWorkbookPage.IDX_ADDVAR is never read locally
SourceContainerWorkbookPage.java :
142 : private final int IDX_ADDVAR= 5;
The method getNameDialogField() from the type LinkFolderDialog.FolderNameField is never used locally
LinkFolderDialog.java :
79 : public StringDialogField getNameDialogField() {
The method isDeleted(Object) from the type ListDialogField.ListViewerAdapter is never used locally
ListDialogField.java :
902 : public boolean isDeleted(Object element) {
The method isDeleted(Object) from the type TreeListDialogField.TreeViewerAdapter is never used locally
TreeListDialogField.java :
847 : public boolean isDeleted(Object element) {
The method remove(IWorkingSet) from the type WorkingSetModel.ElementMapper is never used locally
WorkingSetModel.java :
94 : public IAdaptable[] remove(IWorkingSet ws) {
The method getFirstWorkingSetForResource(IResource) from the type WorkingSetModel.ElementMapper is never used locally
WorkingSetModel.java :
141 : public IWorkingSet getFirstWorkingSetForResource(IResource resource) {
The method getViewer() from the type AddGetterSetterAction.AddGetterSetterContentProvider is never used locally
AddGetterSetterAction.java :
791 : public Viewer getViewer() {
The method createPreferenceStore(JavaScriptTextTools) from the type JavaScriptSourceViewerConfiguration is never used locally
JavaScriptSourceViewerConfiguration.java :
264 : private static final IPreferenceStore createPreferenceStore(JavaScriptTextTools javaTextTools) {
The local variable compUnit is never read
CompletionProposalLabelProvider.java :
590 : char[] compUnit = proposal.getDeclarationTypeName();
The local variable propType is never read
CompletionProposalLabelProvider.java :
591 : char[] propType = proposal.getName();
The local variable project is never read
CompletionProposalLabelProvider.java :
592 : IJavaScriptProject project = proposal.getJavaProject();
The local variable compUnit is never read
CompletionProposalLabelProvider.java :
663 : char[] compUnit = proposal.getDeclarationTypeName();
The local variable propType is never read
CompletionProposalLabelProvider.java :
664 : char[] propType = proposal.getName();
The local variable project is never read
CompletionProposalLabelProvider.java :
665 : IJavaScriptProject project = proposal.getJavaProject();
The local variable compUnit is never read
CompletionProposalLabelProvider.java :
685 : char[] compUnit = proposal.getDeclarationTypeName();
The local variable propType is never read
CompletionProposalLabelProvider.java :
686 : char[] propType = proposal.getName();
The local variable project is never read
CompletionProposalLabelProvider.java :
687 : IJavaScriptProject project = proposal.getJavaProject();