public boolean hasWarnings() { if (this.problems != null) for (int i = 0; i < this.problemCount; i++) { if (this.problems[i].isWarning()) return true; } return false; }
public boolean hasWarnings() { if (this.problems != null) for (int i = 0; i < this.problemCount; i++) { if (this.problems[i].isWarning()) return true; } return false; }
public boolean hasWarnings() { if (this.problems != null) for (int i = 0; i < this.problemCount; i++) { if (this.problems[i].isWarning()) return true; } return false; }
public boolean hasWarnings() { if (this.problems != null) for (int i = 0; i < this.problemCount; i++) { if (this.problems[i].isWarning()) return true; } return false; }
public boolean hasWarnings() { if (this.problems != null) for (int i = 0; i < this.problemCount; i++) { if (this.problems[i].isWarning()) return true; } return false; }
public boolean hasWarnings() { if (this.problems != null) for (int i = 0; i < this.problemCount; i++) { if (this.problems[i].isWarning()) return true; } return false; }
public boolean hasWarnings() { if (this.problems != null) for (int i = 0; i < this.problemCount; i++) { if (this.problems[i].isWarning()) return true; } return false; }
public boolean hasWarnings() { if (this.problems != null) for (int i = 0; i < this.problemCount; i++) { if (this.problems[i].isWarning()) return true; } return false; }
public boolean hasWarnings() { if (this.problems != null) for (int i = 0; i < this.problemCount; i++) { if (this.problems[i].isWarning()) return true; } return false; }
public boolean hasWarnings() { if (this.problems != null) for (int i = 0; i < this.problemCount; i++) { if (this.problems[i].isWarning()) return true; } return false; }
public boolean hasWarnings() { if (this.problems != null) for (int i = 0; i < this.problemCount; i++) { if (this.problems[i].isWarning()) return true; } return false; }
/** * Returns whether there are warnings in the code snippet or the global variable definition. */ public boolean hasWarnings() { if (this.problems == null) { return false; } else { for (int i = 0; i < this.problems.length; i++) { if (this.problems[i].isWarning()) { return true; } } return false; } } /**
/** * Returns whether there are warnings in the code snippet or the global variable definition. */ public boolean hasWarnings() { if (this.problems == null) { return false; } else { for (int i = 0; i < this.problems.length; i++) { if (this.problems[i].isWarning()) { return true; } } return false; } } /**
/** * Returns whether there are warnings in the code snippet or the global variable definition. */ public boolean hasWarnings() { if (this.problems == null) { return false; } else { for (int i = 0; i < this.problems.length; i++) { if (this.problems[i].isWarning()) { return true; } } return false; } } /**
/** * Returns whether there are warnings in the code snippet or the global variable definition. */ public boolean hasWarnings() { if (this.problems == null) { return false; } else { for (int i = 0; i < this.problems.length; i++) { if (this.problems[i].isWarning()) { return true; } } return false; } } /**
@Override public Kind getKind() { if (problem.isError()) { return Diagnostic.Kind.ERROR; } if (problem.isWarning()) { return Diagnostic.Kind.WARNING; } return Diagnostic.Kind.OTHER; } @Override
@Override public Kind getKind() { if (problem.isError()) { return Diagnostic.Kind.ERROR; } if (problem.isWarning()) { return Diagnostic.Kind.WARNING; } else if (problem instanceof DefaultProblem && ((DefaultProblem) problem).isInfo()) { return Diagnostic.Kind.NOTE; } return Diagnostic.Kind.OTHER; } @Override
private static Kind getKind(CategorizedProblem problem) { Kind kind = Kind.OTHER; if(problem.isError()) { kind = Kind.ERROR; } else if(problem.isWarning()) { kind = Kind.WARNING; } else if (problem instanceof DefaultProblem && ((DefaultProblem) problem).isInfo()) { kind = Kind.NOTE; } return kind; }
private static Kind getKind(CategorizedProblem problem) { Kind kind = Kind.OTHER; if(problem.isError()) { kind = Kind.ERROR; } else if(problem.isWarning()) { kind = Kind.WARNING; } else if (problem instanceof DefaultProblem && ((DefaultProblem) problem).isInfo()) { kind = Kind.NOTE; } return kind; }
@Override public Kind getKind() { if (problem.isError()) { return Diagnostic.Kind.ERROR; } if (problem.isWarning()) { return Diagnostic.Kind.WARNING; } else if (problem instanceof DefaultProblem && ((DefaultProblem) problem).isInfo()) { return Diagnostic.Kind.NOTE; } return Diagnostic.Kind.OTHER; } @Override