Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/VariablesEvaluator.java')
-rw-r--r--org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/VariablesEvaluator.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/VariablesEvaluator.java b/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/VariablesEvaluator.java
index 3efbc2478d..195933dac4 100644
--- a/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/VariablesEvaluator.java
+++ b/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/VariablesEvaluator.java
@@ -44,7 +44,7 @@ protected void addEvaluationResultForCompilationProblem(Map resultsByIDs, Catego
int pbLine = problem.getSourceLineNumber();
int currentLine = 1;
- // check package declaration
+ // check package declaration
char[] packageName = getPackageName();
if (packageName.length > 0) {
if (pbLine == 1) {
@@ -78,7 +78,7 @@ protected void addEvaluationResultForCompilationProblem(Map resultsByIDs, Catego
int varCount = this.context.variableCount;
if ((currentLine <= pbLine) && (pbLine < currentLine + varCount)) {
GlobalVariable var = this.context.variables[pbLine - currentLine];
-
+
// set evaluation id and type
evaluationID = var.getName();
evaluationType = EvaluationResult.T_VARIABLE;
@@ -144,7 +144,7 @@ protected char[] getClassName() {
*/
Compiler getCompiler(ICompilerRequestor compilerRequestor) {
Compiler compiler = super.getCompiler(compilerRequestor);
-
+
// Initialize the compiler's lookup environment with the already compiled super class
IBinaryType binaryType = this.context.getRootCodeSnippetBinary();
if (binaryType != null) {
@@ -166,8 +166,8 @@ Compiler getCompiler(ICompilerRequestor compilerRequestor) {
compiler.lookupEnvironment.cacheBinaryType(binary, null /*no access restriction*/);
}
}
-
- return compiler;
+
+ return compiler;
}
/**
* Returns the name of package of the current compilation unit.
@@ -181,7 +181,7 @@ protected char[] getPackageName() {
protected char[] getSource() {
StringBuffer buffer = new StringBuffer();
int lineNumberOffset = 1;
-
+
// package declaration
char[] packageName = getPackageName();
if (packageName.length != 0) {
@@ -270,7 +270,7 @@ protected char[] getSource() {
}
}
buffer.append("\t}").append(this.context.lineSeparator); //$NON-NLS-1$
-
+
// end of class declaration
buffer.append('}').append(this.context.lineSeparator);

Back to the top