Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2009-04-26 21:56:32 -0400
committerpelder2009-04-26 21:56:32 -0400
commit5e85ff303829de93b5c1e5df4b5e47aae2515449 (patch)
tree5ae687f7cce7ae9b7029be7ae67e8475ac8ecf04
parenta340fdb9198454a4677d49f693230295449d6f1b (diff)
downloadorg.eclipse.jet-5e85ff303829de93b5c1e5df4b5e47aae2515449.tar.gz
org.eclipse.jet-5e85ff303829de93b5c1e5df4b5e47aae2515449.tar.xz
org.eclipse.jet-5e85ff303829de93b5c1e5df4b5e47aae2515449.zip
[237817] Generated code has java compile warnings
-rw-r--r--plugins/org.eclipse.jet/src/org/eclipse/jet/internal/compiler/templates/JET2TransformGenerator.java4
-rw-r--r--plugins/org.eclipse.jet/templates/jet2transform.jet4
-rw-r--r--tests/org.eclipse.jet.tests/data/simplifiedCompiler/templates/simple.v2.loader.expected.java4
-rw-r--r--tests/org.eclipse.jet.tests/data/simplifiedCompiler/templates/simple.v2.loader.java5.expected.java4
4 files changed, 8 insertions, 8 deletions
diff --git a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/compiler/templates/JET2TransformGenerator.java b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/compiler/templates/JET2TransformGenerator.java
index 305ec15..5025d31 100644
--- a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/compiler/templates/JET2TransformGenerator.java
+++ b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/compiler/templates/JET2TransformGenerator.java
@@ -82,7 +82,7 @@ boolean useJava5 = context.hasVariable("useJava5") ? Boolean.valueOf((String)con
out.write(NL);
out.write(" public JET2TemplateLoader getDelegateLoader() {"); //$NON-NLS-1$
out.write(NL);
- out.write(" return delegate;"); //$NON-NLS-1$
+ out.write(" return this.delegate;"); //$NON-NLS-1$
out.write(NL);
out.write(" }"); //$NON-NLS-1$
out.write(NL);
@@ -129,7 +129,7 @@ boolean useJava5 = context.hasVariable("useJava5") ? Boolean.valueOf((String)con
}
out.write(" default:"); //$NON-NLS-1$
out.write(NL);
- out.write(" return delegate != null ? delegate.getTemplate(templatePath) : null;"); //$NON-NLS-1$
+ out.write(" return this.delegate != null ? this.delegate.getTemplate(templatePath) : null;"); //$NON-NLS-1$
out.write(NL);
out.write(" }"); //$NON-NLS-1$
out.write(NL);
diff --git a/plugins/org.eclipse.jet/templates/jet2transform.jet b/plugins/org.eclipse.jet/templates/jet2transform.jet
index db7d34a..faae06a 100644
--- a/plugins/org.eclipse.jet/templates/jet2transform.jet
+++ b/plugins/org.eclipse.jet/templates/jet2transform.jet
@@ -48,7 +48,7 @@ public class <%= parms.getClassName() %> implements JET2TemplateLoader,
* @see org.eclipse.jet.JET2TemplateLoaderExtension#getDelegateLoader()
*/
public JET2TemplateLoader getDelegateLoader() {
- return delegate;
+ return this.delegate;
}
/*
@@ -73,7 +73,7 @@ public class <%= parms.getClassName() %> implements JET2TemplateLoader,
return new <%= entry.getValue() %>();
<% } %>
default:
- return delegate != null ? delegate.getTemplate(templatePath) : null;
+ return this.delegate != null ? this.delegate.getTemplate(templatePath) : null;
}
}
diff --git a/tests/org.eclipse.jet.tests/data/simplifiedCompiler/templates/simple.v2.loader.expected.java b/tests/org.eclipse.jet.tests/data/simplifiedCompiler/templates/simple.v2.loader.expected.java
index f454d3d..a469191 100644
--- a/tests/org.eclipse.jet.tests/data/simplifiedCompiler/templates/simple.v2.loader.expected.java
+++ b/tests/org.eclipse.jet.tests/data/simplifiedCompiler/templates/simple.v2.loader.expected.java
@@ -20,7 +20,7 @@ public class TemplateLoaderClass implements JET2TemplateLoader,
* @see org.eclipse.jet.JET2TemplateLoaderExtension#getDelegateLoader()
*/
public JET2TemplateLoader getDelegateLoader() {
- return delegate;
+ return this.delegate;
}
/*
@@ -39,7 +39,7 @@ public class TemplateLoaderClass implements JET2TemplateLoader,
case 1: // simple.v2.input2.jet
return new org.eclipse.jet.compiled._jet_simplev2input2();
default:
- return delegate != null ? delegate.getTemplate(templatePath) : null;
+ return this.delegate != null ? this.delegate.getTemplate(templatePath) : null;
}
}
diff --git a/tests/org.eclipse.jet.tests/data/simplifiedCompiler/templates/simple.v2.loader.java5.expected.java b/tests/org.eclipse.jet.tests/data/simplifiedCompiler/templates/simple.v2.loader.java5.expected.java
index 2473e8a..2edc603 100644
--- a/tests/org.eclipse.jet.tests/data/simplifiedCompiler/templates/simple.v2.loader.java5.expected.java
+++ b/tests/org.eclipse.jet.tests/data/simplifiedCompiler/templates/simple.v2.loader.java5.expected.java
@@ -20,7 +20,7 @@ public class TemplateLoaderClass implements JET2TemplateLoader,
* @see org.eclipse.jet.JET2TemplateLoaderExtension#getDelegateLoader()
*/
public JET2TemplateLoader getDelegateLoader() {
- return delegate;
+ return this.delegate;
}
/*
@@ -39,7 +39,7 @@ public class TemplateLoaderClass implements JET2TemplateLoader,
case 1: // simple.v2.input2.jet
return new org.eclipse.jet.compiled._jet_simplev2input2();
default:
- return delegate != null ? delegate.getTemplate(templatePath) : null;
+ return this.delegate != null ? this.delegate.getTemplate(templatePath) : null;
}
}

Back to the top