public void localVariableNonNullComparedToNull(LocalVariableBinding local, ASTNode location) { int severity = computeSeverity(IProblem.NonNullLocalVariableComparisonYieldsFalse); if (severity == ProblemSeverities.Ignore) return; String[] arguments; int problemId; if (local.isNonNull()) { char[][] annotationName = this.options.nonNullAnnotationName; // cannot be null if local is declared @NonNull arguments = new String[] {new String(local.name), new String(annotationName[annotationName.length-1]) }; problemId = IProblem.SpecdNonNullLocalVariableComparisonYieldsFalse; } else { arguments = new String[] {new String(local.name) }; problemId = IProblem.NonNullLocalVariableComparisonYieldsFalse; } this.handle( problemId, arguments, arguments, severity, nodeSourceStart(local, location), nodeSourceEnd(local, location)); }
public void localVariableRedundantCheckOnNonNull(LocalVariableBinding local, ASTNode location) { int severity = computeSeverity(IProblem.RedundantNullCheckOnNonNullLocalVariable); if (severity == ProblemSeverities.Ignore) return; String[] arguments; int problemId; if (local.isNonNull()) { char[][] annotationName = this.options.nonNullAnnotationName; // cannot be null if local is declared @NonNull arguments = new String[] {new String(local.name), new String(annotationName[annotationName.length-1]) }; problemId = IProblem.RedundantNullCheckOnSpecdNonNullLocalVariable; } else { arguments = new String[] {new String(local.name) }; problemId = IProblem.RedundantNullCheckOnNonNullLocalVariable; } this.handle( problemId, arguments, arguments, severity, nodeSourceStart(local, location), nodeSourceEnd(local, location)); }
public void localVariableNonNullComparedToNull(LocalVariableBinding local, ASTNode location) { int severity = computeSeverity(IProblem.NonNullLocalVariableComparisonYieldsFalse); if (severity == ProblemSeverities.Ignore) return; String[] arguments; int problemId; if (local.isNonNull()) { char[][] annotationName = this.options.nonNullAnnotationName; // cannot be null if local is declared @NonNull arguments = new String[] {new String(local.name), new String(annotationName[annotationName.length-1]) }; problemId = IProblem.SpecdNonNullLocalVariableComparisonYieldsFalse; } else { arguments = new String[] {new String(local.name) }; problemId = IProblem.NonNullLocalVariableComparisonYieldsFalse; } this.handle( problemId, arguments, arguments, severity, nodeSourceStart(local, location), nodeSourceEnd(local, location)); }
public void localVariableNonNullComparedToNull(LocalVariableBinding local, ASTNode location) { int severity = computeSeverity(IProblem.NonNullLocalVariableComparisonYieldsFalse); if (severity == ProblemSeverities.Ignore) return; String[] arguments; int problemId; if (local.isNonNull()) { char[][] annotationName = this.options.nonNullAnnotationName; // cannot be null if local is declared @NonNull arguments = new String[] {new String(local.name), new String(annotationName[annotationName.length-1]) }; problemId = IProblem.SpecdNonNullLocalVariableComparisonYieldsFalse; } else { arguments = new String[] {new String(local.name) }; problemId = IProblem.NonNullLocalVariableComparisonYieldsFalse; } this.handle( problemId, arguments, arguments, severity, nodeSourceStart(local, location), nodeSourceEnd(local, location)); }
public void localVariableRedundantCheckOnNonNull(LocalVariableBinding local, ASTNode location) { int severity = computeSeverity(IProblem.RedundantNullCheckOnNonNullLocalVariable); if (severity == ProblemSeverities.Ignore) return; String[] arguments; int problemId; if (local.isNonNull()) { char[][] annotationName = this.options.nonNullAnnotationName; // cannot be null if local is declared @NonNull arguments = new String[] {new String(local.name), new String(annotationName[annotationName.length-1]) }; problemId = IProblem.RedundantNullCheckOnSpecdNonNullLocalVariable; } else { arguments = new String[] {new String(local.name) }; problemId = IProblem.RedundantNullCheckOnNonNullLocalVariable; } this.handle( problemId, arguments, arguments, severity, nodeSourceStart(local, location), nodeSourceEnd(local, location)); }
public void localVariableRedundantCheckOnNonNull(LocalVariableBinding local, ASTNode location) { int severity = computeSeverity(IProblem.RedundantNullCheckOnNonNullLocalVariable); if (severity == ProblemSeverities.Ignore) return; String[] arguments; int problemId; if (local.isNonNull()) { char[][] annotationName = this.options.nonNullAnnotationName; // cannot be null if local is declared @NonNull arguments = new String[] {new String(local.name), new String(annotationName[annotationName.length-1]) }; problemId = IProblem.RedundantNullCheckOnSpecdNonNullLocalVariable; } else { arguments = new String[] {new String(local.name) }; problemId = IProblem.RedundantNullCheckOnNonNullLocalVariable; } this.handle( problemId, arguments, arguments, severity, nodeSourceStart(local, location), nodeSourceEnd(local, location)); }
public void localVariableNonNullComparedToNull(LocalVariableBinding local, ASTNode location) { int severity = computeSeverity(IProblem.NonNullLocalVariableComparisonYieldsFalse); if (severity == ProblemSeverities.Ignore) return; String[] arguments; int problemId; if (local.isNonNull()) { char[][] annotationName = this.options.nonNullAnnotationName; // cannot be null if local is declared @NonNull arguments = new String[] {new String(local.name), new String(annotationName[annotationName.length-1]) }; problemId = IProblem.SpecdNonNullLocalVariableComparisonYieldsFalse; } else { arguments = new String[] {new String(local.name) }; problemId = IProblem.NonNullLocalVariableComparisonYieldsFalse; } this.handle( problemId, arguments, arguments, severity, nodeSourceStart(local, location), nodeSourceEnd(local, location)); }
public void localVariableRedundantCheckOnNonNull(LocalVariableBinding local, ASTNode location) { int severity = computeSeverity(IProblem.RedundantNullCheckOnNonNullLocalVariable); if (severity == ProblemSeverities.Ignore) return; String[] arguments; int problemId; if (local.isNonNull()) { char[][] annotationName = this.options.nonNullAnnotationName; // cannot be null if local is declared @NonNull arguments = new String[] {new String(local.name), new String(annotationName[annotationName.length-1]) }; problemId = IProblem.RedundantNullCheckOnSpecdNonNullLocalVariable; } else { arguments = new String[] {new String(local.name) }; problemId = IProblem.RedundantNullCheckOnNonNullLocalVariable; } this.handle( problemId, arguments, arguments, severity, nodeSourceStart(local, location), nodeSourceEnd(local, location)); }
public void localVariableRedundantCheckOnNonNull(LocalVariableBinding local, ASTNode location) { int severity = computeSeverity(IProblem.RedundantNullCheckOnNonNullLocalVariable); if (severity == ProblemSeverities.Ignore) return; String[] arguments; int problemId; if (local.isNonNull()) { char[][] annotationName = this.options.nonNullAnnotationName; // cannot be null if local is declared @NonNull arguments = new String[] {new String(local.name), new String(annotationName[annotationName.length-1]) }; problemId = IProblem.RedundantNullCheckOnSpecdNonNullLocalVariable; } else { arguments = new String[] {new String(local.name) }; problemId = IProblem.RedundantNullCheckOnNonNullLocalVariable; } this.handle( problemId, arguments, arguments, severity, nodeSourceStart(local, location), nodeSourceEnd(local, location)); }
public void localVariableRedundantCheckOnNonNull(LocalVariableBinding local, ASTNode location) { int severity = computeSeverity(IProblem.RedundantNullCheckOnNonNullLocalVariable); if (severity == ProblemSeverities.Ignore) return; String[] arguments; int problemId; if (local.isNonNull()) { char[][] annotationName = this.options.nonNullAnnotationName; // cannot be null if local is declared @NonNull arguments = new String[] {new String(local.name), new String(annotationName[annotationName.length-1]) }; problemId = IProblem.RedundantNullCheckOnSpecdNonNullLocalVariable; } else { arguments = new String[] {new String(local.name) }; problemId = IProblem.RedundantNullCheckOnNonNullLocalVariable; } this.handle( problemId, arguments, arguments, severity, nodeSourceStart(local, location), nodeSourceEnd(local, location)); }
public void localVariableNonNullComparedToNull(LocalVariableBinding local, ASTNode location) { int severity = computeSeverity(IProblem.NonNullLocalVariableComparisonYieldsFalse); if (severity == ProblemSeverities.Ignore) return; String[] arguments; int problemId; if (local.isNonNull()) { char[][] annotationName = this.options.nonNullAnnotationName; // cannot be null if local is declared @NonNull arguments = new String[] {new String(local.name), new String(annotationName[annotationName.length-1]) }; problemId = IProblem.SpecdNonNullLocalVariableComparisonYieldsFalse; } else { arguments = new String[] {new String(local.name) }; problemId = IProblem.NonNullLocalVariableComparisonYieldsFalse; } this.handle( problemId, arguments, arguments, severity, nodeSourceStart(local, location), nodeSourceEnd(local, location)); }
public void localVariableRedundantCheckOnNonNull(LocalVariableBinding local, ASTNode location) { int severity = computeSeverity(IProblem.RedundantNullCheckOnNonNullLocalVariable); if (severity == ProblemSeverities.Ignore) return; String[] arguments; int problemId; if (local.isNonNull()) { char[][] annotationName = this.options.nonNullAnnotationName; // cannot be null if local is declared @NonNull arguments = new String[] {new String(local.name), new String(annotationName[annotationName.length-1]) }; problemId = IProblem.RedundantNullCheckOnSpecdNonNullLocalVariable; } else { arguments = new String[] {new String(local.name) }; problemId = IProblem.RedundantNullCheckOnNonNullLocalVariable; } this.handle( problemId, arguments, arguments, severity, nodeSourceStart(local, location), nodeSourceEnd(local, location)); }
public void localVariableRedundantCheckOnNonNull(LocalVariableBinding local, ASTNode location) { int severity = computeSeverity(IProblem.RedundantNullCheckOnNonNullLocalVariable); if (severity == ProblemSeverities.Ignore) return; String[] arguments; int problemId; if (local.isNonNull()) { char[][] annotationName = this.options.nonNullAnnotationName; // cannot be null if local is declared @NonNull arguments = new String[] {new String(local.name), new String(annotationName[annotationName.length-1]) }; problemId = IProblem.RedundantNullCheckOnSpecdNonNullLocalVariable; } else { arguments = new String[] {new String(local.name) }; problemId = IProblem.RedundantNullCheckOnNonNullLocalVariable; } this.handle( problemId, arguments, arguments, severity, nodeSourceStart(local, location), nodeSourceEnd(local, location)); }
public void localVariableNonNullComparedToNull(LocalVariableBinding local, ASTNode location) { int severity = computeSeverity(IProblem.NonNullLocalVariableComparisonYieldsFalse); if (severity == ProblemSeverities.Ignore) return; String[] arguments; int problemId; if (local.isNonNull()) { char[][] annotationName = this.options.nonNullAnnotationName; // cannot be null if local is declared @NonNull arguments = new String[] {new String(local.name), new String(annotationName[annotationName.length-1]) }; problemId = IProblem.SpecdNonNullLocalVariableComparisonYieldsFalse; } else { arguments = new String[] {new String(local.name) }; problemId = IProblem.NonNullLocalVariableComparisonYieldsFalse; } this.handle( problemId, arguments, arguments, severity, nodeSourceStart(local, location), nodeSourceEnd(local, location)); }
public void localVariableNonNullComparedToNull(LocalVariableBinding local, ASTNode location) { int severity = computeSeverity(IProblem.NonNullLocalVariableComparisonYieldsFalse); if (severity == ProblemSeverities.Ignore) return; String[] arguments; int problemId; if (local.isNonNull()) { char[][] annotationName = this.options.nonNullAnnotationName; // cannot be null if local is declared @NonNull arguments = new String[] {new String(local.name), new String(annotationName[annotationName.length-1]) }; problemId = IProblem.SpecdNonNullLocalVariableComparisonYieldsFalse; } else { arguments = new String[] {new String(local.name) }; problemId = IProblem.NonNullLocalVariableComparisonYieldsFalse; } this.handle( problemId, arguments, arguments, severity, nodeSourceStart(local, location), nodeSourceEnd(local, location)); }
public void localVariableNonNullComparedToNull(LocalVariableBinding local, ASTNode location) { int severity = computeSeverity(IProblem.NonNullLocalVariableComparisonYieldsFalse); if (severity == ProblemSeverities.Ignore) return; String[] arguments; int problemId; if (local.isNonNull()) { char[][] annotationName = this.options.nonNullAnnotationName; // cannot be null if local is declared @NonNull arguments = new String[] {new String(local.name), new String(annotationName[annotationName.length-1]) }; problemId = IProblem.SpecdNonNullLocalVariableComparisonYieldsFalse; } else { arguments = new String[] {new String(local.name) }; problemId = IProblem.NonNullLocalVariableComparisonYieldsFalse; } this.handle( problemId, arguments, arguments, severity, nodeSourceStart(local, location), nodeSourceEnd(local, location)); }
public void localVariableNonNullComparedToNull(LocalVariableBinding local, ASTNode location) { int severity = computeSeverity(IProblem.NonNullLocalVariableComparisonYieldsFalse); if (severity == ProblemSeverities.Ignore) return; String[] arguments; int problemId; if (local.isNonNull()) { char[][] annotationName = this.options.nonNullAnnotationName; // cannot be null if local is declared @NonNull arguments = new String[] {new String(local.name), new String(annotationName[annotationName.length-1]) }; problemId = IProblem.SpecdNonNullLocalVariableComparisonYieldsFalse; } else { arguments = new String[] {new String(local.name) }; problemId = IProblem.NonNullLocalVariableComparisonYieldsFalse; } this.handle( problemId, arguments, arguments, severity, nodeSourceStart(local, location), nodeSourceEnd(local, location)); }
public void localVariableRedundantCheckOnNonNull(LocalVariableBinding local, ASTNode location) { int severity = computeSeverity(IProblem.RedundantNullCheckOnNonNullLocalVariable); if (severity == ProblemSeverities.Ignore) return; String[] arguments; int problemId; if (local.isNonNull()) { char[][] annotationName = this.options.nonNullAnnotationName; // cannot be null if local is declared @NonNull arguments = new String[] {new String(local.name), new String(annotationName[annotationName.length-1]) }; problemId = IProblem.RedundantNullCheckOnSpecdNonNullLocalVariable; } else { arguments = new String[] {new String(local.name) }; problemId = IProblem.RedundantNullCheckOnNonNullLocalVariable; } this.handle( problemId, arguments, arguments, severity, nodeSourceStart(local, location), nodeSourceEnd(local, location)); }