diff options
Diffstat (limited to 'org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/CompilationResult.java')
-rw-r--r-- | org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/CompilationResult.java | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/CompilationResult.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/CompilationResult.java index 745d386f29..ece197c9d7 100644 --- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/CompilationResult.java +++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/CompilationResult.java @@ -11,7 +11,7 @@ package org.eclipse.jdt.internal.compiler; /** - * A compilation result consists of all information returned by the compiler for + * A compilation result consists of all information returned by the compiler for * a single compiled compilation source unit. This includes: * <ul> * <li> the compilation unit that was compiled @@ -27,7 +27,7 @@ package org.eclipse.jdt.internal.compiler; * parameter and return types, local variable types, types of intermediate expressions, etc. * It also includes the namespaces (packages) in which names were looked up. * It does <em>not</em> include finer grained dependencies such as information about - * specific fields and methods which were referenced, but does contain their + * specific fields and methods which were referenced, but does contain their * declaring types and any other types used to locate such fields or methods. */ import java.util.Arrays; @@ -49,7 +49,7 @@ import org.eclipse.jdt.internal.compiler.parser.RecoveryScannerData; import org.eclipse.jdt.internal.compiler.util.Util; public class CompilationResult { - + public CategorizedProblem problems[]; public CategorizedProblem tasks[]; public int problemCount; @@ -71,7 +71,7 @@ public class CompilationResult { public boolean hasSyntaxError = false; public char[][] packageName; public boolean checkSecondaryTypes = false; // check for secondary types which were created after the initial buildTypeBindings call - + private static final int[] EMPTY_LINE_ENDS = Util.EMPTY_INT_ARRAY; private static final Comparator PROBLEM_COMPARATOR = new Comparator() { public int compare(Object o1, Object o2) { @@ -81,7 +81,7 @@ private static final Comparator PROBLEM_COMPARATOR = new Comparator() { public CompilationResult( char[] fileName, - int unitIndex, + int unitIndex, int totalUnitsKnown, int maxProblemPerUnit){ @@ -93,7 +93,7 @@ public CompilationResult( public CompilationResult( ICompilationUnit compilationUnit, - int unitIndex, + int unitIndex, int totalUnitsKnown, int maxProblemPerUnit){ @@ -109,7 +109,7 @@ private int computePriority(CategorizedProblem problem){ final int P_OUTSIDE_METHOD = 40000; final int P_FIRST_ERROR = 20000; final int P_ERROR = 100000; - + int priority = 10000 - problem.getSourceLineNumber(); // early problems first if (priority < 0) priority = 0; if (problem.isError()){ @@ -135,9 +135,9 @@ private int computePriority(CategorizedProblem problem){ } public CategorizedProblem[] getAllProblems() { - CategorizedProblem[] onlyProblems = this.getProblems(); + CategorizedProblem[] onlyProblems = getProblems(); int onlyProblemCount = onlyProblems != null ? onlyProblems.length : 0; - CategorizedProblem[] onlyTasks = this.getTasks(); + CategorizedProblem[] onlyTasks = getTasks(); int onlyTaskCount = onlyTasks != null ? onlyTasks.length : 0; if (onlyTaskCount == 0) { return onlyProblems; @@ -189,7 +189,7 @@ public CategorizedProblem[] getAllProblems() { public ClassFile[] getClassFiles() { ClassFile[] classFiles = new ClassFile[this.compiledTypes.size()]; this.compiledTypes.values().toArray(classFiles); - return classFiles; + return classFiles; } /** @@ -396,7 +396,7 @@ public String toString(){ while (keys.hasNext()) { char[] typeName = (char[]) keys.next(); buffer.append("\t - ").append(typeName).append('\n'); //$NON-NLS-1$ - + } } else { buffer.append("No COMPILED type\n"); //$NON-NLS-1$ @@ -408,7 +408,7 @@ public String toString(){ } } else { buffer.append("No PROBLEM\n"); //$NON-NLS-1$ - } + } return buffer.toString(); } } |