Available Methods
- isError ( )
- getID ( )
- getSourceStart ( )
- UnusedPrivateField ( )
- getSourceEnd ( )
- IllegalRedefinitionToNonNullParameter ( )
- JavadocDuplicateThrowsClassName ( )
- UndefinedType ( )
- RedundantNullDefaultAnnotationType ( )
- LocalVariableIsNeverUsed ( )
- CannotOverrideAStaticMethodWithAnInstanceMethod ( )
- UndefinedMethod ( )
- Task ( )
- JavadocUnexpectedTag ( )
- EnumConstantMustImplementAbstractMethod ( )
- ImportNotFound ( )
- UndefinedName ( )
- ArgumentIsNeverUsed ( )
- IllegalModifierCombinationFinalVolatileForField ( )
- AmbiguousType ( )
- CannotImportPackage ( )
- JavadocInvalidTag ( )
- IllegalDefinitionToNonNullParameter ( )
- ForbiddenReference ( )
- NonStaticFieldFromStaticInvocation ( )
- UnusedTypeParameter ( )
- UnnecessaryCast ( )
- MissingOverrideAnnotationForInterfaceMethodImplementation ( )
- NonStaticAccessToStaticMethod ( )
- IllegalModifierForVariable ( )
- MethodReducesVisibility ( )
- IllegalModifierForInterfaceMethod ( )
- RequiredNonNullButProvidedNull ( )
- ParsingErrorMergeTokens ( )
- ShouldReturnValue ( )
- FieldHidingField ( )
- ArgumentHidingField ( )
- UnqualifiedFieldAccess ( )
- UnterminatedString ( )
- LocalVariableHidingLocalVariable ( )
- UnusedPrivateConstructor ( )
- InvalidUsageOfForeachStatements ( )
- DuplicateNestedType ( )
- MissingEnumConstantCase ( )
- UnusedImport ( )
- DuplicateField ( )
- ConflictingImport ( )
- NotVisibleField ( )
- DuplicateBlankFinalFieldInitialization ( )
- IllegalModifierForEnumConstructor ( )
- IllegalModifierForConstructor ( )
- PackageIsNotExpectedPackage ( )
- NonExternalizedStringLiteral ( )
- JavadocAmbiguousType ( )
- ReturnTypeMismatch ( )
- IllegalModifierForEnum ( )
- InvalidInput ( )
- NullSourceString ( )
- UnresolvedVariable ( )
- IllegalReturnNullityRedefinition ( )
- UseEnumAsAnIdentifier ( )
- UnexpectedStaticModifierForField ( )
- IllegalModifierForMemberEnum ( )
- EnumAbstractMethodMustBeImplemented ( )
- MethodCanBePotentiallyStatic ( )
- TypeMissingDeprecatedAnnotation ( )
- RedundantSpecificationOfTypeArguments ( )
- IncompatibleExceptionInThrowsClause ( )
- UnhandledWarningToken ( )
- NonStaticOrAlienTypeReceiver ( )
- ParsingErrorInsertToCompletePhrase ( )
- ParsingErrorNoSuggestion ( )
- UnhandledExceptionInDefaultConstructor ( )
- RawTypeReference ( )
- UndefinedAnnotationMember ( )
- AbstractMethodMustBeImplemented ( )
Related Classes
- java.util.Arrays
- java.io.File
- java.io.InputStream
- java.util.Iterator
- java.util.Locale
- org.eclipse.core.runtime.CoreException
- org.eclipse.core.runtime.NullProgressMonitor
- org.eclipse.jdt.core.dom.CompilationUnit
- org.eclipse.jdt.core.IJavaProject
- org.eclipse.jdt.core.JavaModelException
- org.eclipse.jdt.core.ICompilationUnit
- org.eclipse.jdt.core.dom.SimpleName
- org.eclipse.jdt.core.dom.ASTNode
- org.eclipse.jdt.core.dom.Modifier
- org.eclipse.jdt.core.IPackageFragment
- org.eclipse.jdt.core.dom.ITypeBinding
- org.eclipse.jdt.internal.compiler.impl.CompilerOptions
- org.eclipse.jdt.core.dom.IMethodBinding
- org.eclipse.ltk.core.refactoring.RefactoringStatus
- org.eclipse.jdt.core.search.IJavaSearchConstants
- org.eclipse.jdt.core.dom.BodyDeclaration
- org.eclipse.lsp4j.TextDocumentIdentifier
- org.eclipse.jdt.internal.compiler.env.ICompilationUnit
- org.eclipse.lsp4j.Range
- org.eclipse.lsp4j.jsonrpc.messages.Either
Java Code Examples for org.eclipse.jdt.core.compiler.IProblem#UnusedPrivateConstructor
The following examples show how to use
org.eclipse.jdt.core.compiler.IProblem#UnusedPrivateConstructor .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BaseDiagnosticsHandler.java From eclipse.jdt.ls with Eclipse Public License 2.0 | 4 votes |
public static List<DiagnosticTag> getDiagnosticTag(int id) { switch (id) { case IProblem.UsingDeprecatedType: case IProblem.UsingDeprecatedField: case IProblem.UsingDeprecatedMethod: case IProblem.UsingDeprecatedConstructor: case IProblem.OverridingDeprecatedMethod: case IProblem.JavadocUsingDeprecatedField: case IProblem.JavadocUsingDeprecatedConstructor: case IProblem.JavadocUsingDeprecatedMethod: case IProblem.JavadocUsingDeprecatedType: case IProblem.UsingTerminallyDeprecatedType: case IProblem.UsingTerminallyDeprecatedMethod: case IProblem.UsingTerminallyDeprecatedConstructor: case IProblem.UsingTerminallyDeprecatedField: case IProblem.OverridingTerminallyDeprecatedMethod: case IProblem.UsingDeprecatedSinceVersionType: case IProblem.UsingDeprecatedSinceVersionMethod: case IProblem.UsingDeprecatedSinceVersionConstructor: case IProblem.UsingDeprecatedSinceVersionField: case IProblem.OverridingDeprecatedSinceVersionMethod: case IProblem.UsingTerminallyDeprecatedSinceVersionType: case IProblem.UsingTerminallyDeprecatedSinceVersionMethod: case IProblem.UsingTerminallyDeprecatedSinceVersionConstructor: case IProblem.UsingTerminallyDeprecatedSinceVersionField: case IProblem.OverridingTerminallyDeprecatedSinceVersionMethod: case IProblem.UsingDeprecatedPackage: case IProblem.UsingDeprecatedSinceVersionPackage: case IProblem.UsingTerminallyDeprecatedPackage: case IProblem.UsingTerminallyDeprecatedSinceVersionPackage: case IProblem.UsingDeprecatedModule: case IProblem.UsingDeprecatedSinceVersionModule: case IProblem.UsingTerminallyDeprecatedModule: case IProblem.UsingTerminallyDeprecatedSinceVersionModule: return Arrays.asList(DiagnosticTag.Deprecated); case IProblem.UnnecessaryCast: case IProblem.UnnecessaryInstanceof: case IProblem.UnnecessaryElse: case IProblem.UnnecessaryNLSTag: // Report *unused* cases as unnecessary case IProblem.UnusedPrivateType: case IProblem.UnusedPrivateField: case IProblem.UnusedPrivateMethod: case IProblem.UnusedPrivateConstructor: case IProblem.UnusedObjectAllocation: case IProblem.UnusedMethodDeclaredThrownException: case IProblem.UnusedConstructorDeclaredThrownException: case IProblem.UnusedLabel: case IProblem.UnusedImport: case IProblem.UnusedTypeArgumentsForMethodInvocation: case IProblem.UnusedWarningToken: case IProblem.UnusedTypeArgumentsForConstructorInvocation: case IProblem.UnusedTypeParameter: // Other unused cases case IProblem.LocalVariableIsNeverUsed: case IProblem.ArgumentIsNeverUsed: case IProblem.ExceptionParameterIsNeverUsed: return Arrays.asList(DiagnosticTag.Unnecessary); } return null; }
Example 2
Source File: UnusedCodeFix.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 4 votes |
public static boolean isUnusedMember(IProblemLocation problem) { int id= problem.getProblemId(); return id == IProblem.UnusedPrivateMethod || id == IProblem.UnusedPrivateConstructor || id == IProblem.UnusedPrivateField || id == IProblem.UnusedPrivateType || id == IProblem.LocalVariableIsNeverUsed || id == IProblem.ArgumentIsNeverUsed; }