| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e8e6558 commit 5626331
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -876,7 +876,8 @@ public void dispose() { | |||
| 876 | 876 | ||
| 877 | 877 | private void handleSketchProblems(PreprocessedSketch ps) { | |
| 878 | 878 | // Process problems | |
| 879 | - final List<Problem> problems = ps.problems.stream() | ||
| 879 | + IProblem[] iproblems = ps.compilationUnit.getProblems(); | ||
| 880 | + final List<Problem> problems = Arrays.stream(iproblems) | ||
| 880 | 881 | // Filter Warnings if they are not enabled | |
| 881 | 882 | .filter(iproblem -> !(iproblem.isWarning() && !JavaMode.warningsEnabled)) | |
| 882 | 883 | // Hide a useless error which is produced when a line ends with | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,6 @@ | |||
| 2 | 2 | ||
| 3 | 3 | import com.google.classpath.ClassPath; | |
| 4 | 4 | ||
| 5 | - import org.eclipse.jdt.core.compiler.IProblem; | ||
| 6 | 5 | import org.eclipse.jdt.core.dom.ASTNode; | |
| 7 | 6 | import org.eclipse.jdt.core.dom.CompilationUnit; | |
| 8 | 7 | ||
@@ -38,8 +37,6 @@ public class PreprocessedSketch { | |||
| 38 | 37 | public final boolean hasSyntaxErrors; | |
| 39 | 38 | public final boolean hasCompilationErrors; | |
| 40 | 39 | ||
| 41 | - public final List<IProblem> problems; | ||
| 42 | - | ||
| 43 | 40 | public final List<ImportStatement> programImports; | |
| 44 | 41 | public final List<ImportStatement> coreAndDefaultImports; | |
| 45 | 42 | public final List<ImportStatement> codeFolderImports; | |
@@ -218,8 +215,6 @@ public static class Builder { | |||
| 218 | 215 | public boolean hasSyntaxErrors; | |
| 219 | 216 | public boolean hasCompilationErrors; | |
| 220 | 217 | ||
| 221 | - public List<IProblem> problems = new ArrayList<>(); | ||
| 222 | - | ||
| 223 | 218 | public final List<ImportStatement> programImports = new ArrayList<>(); | |
| 224 | 219 | public final List<ImportStatement> coreAndDefaultImports = new ArrayList<>(); | |
| 225 | 220 | public final List<ImportStatement> codeFolderImports = new ArrayList<>(); | |
@@ -254,8 +249,6 @@ private PreprocessedSketch(Builder b) { | |||
| 254 | 249 | hasSyntaxErrors = b.hasSyntaxErrors; | |
| 255 | 250 | hasCompilationErrors = b.hasCompilationErrors; | |
| 256 | 251 | ||
| 257 | - problems = Collections.unmodifiableList(b.problems); | ||
| 258 | - | ||
| 259 | 252 | programImports = Collections.unmodifiableList(b.programImports); | |
| 260 | 253 | coreAndDefaultImports = Collections.unmodifiableList(b.coreAndDefaultImports); | |
| 261 | 254 | codeFolderImports = Collections.unmodifiableList(b.codeFolderImports); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -412,7 +412,6 @@ private PreprocessedSketch preprocessSketch(PreprocessedSketch prevResult) { | |||
| 412 | 412 | ||
| 413 | 413 | // Get compilation problems | |
| 414 | 414 | List<IProblem> bindingsProblems = Arrays.asList(bindingsCU.getProblems()); | |
| 415 | - result.problems.addAll(bindingsProblems); | ||
| 416 | 415 | result.hasCompilationErrors = bindingsProblems.stream() | |
| 417 | 416 | .anyMatch(IProblem::isError); | |
| 418 | 417 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments