Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2009-04-22 16:44:08 -0400
committerpelder2009-04-22 16:44:08 -0400
commita340fdb9198454a4677d49f693230295449d6f1b (patch)
tree31898d44ba344bbfaa78f33be094aae39f414b14
parent98299495d60d03a828ede2ca7b5b4d7e812f0a3a (diff)
downloadorg.eclipse.jet-a340fdb9198454a4677d49f693230295449d6f1b.tar.gz
org.eclipse.jet-a340fdb9198454a4677d49f693230295449d6f1b.tar.xz
org.eclipse.jet-a340fdb9198454a4677d49f693230295449d6f1b.zip
[272059] Compiler warnings about unused functions on JET generated template loader class
-rw-r--r--plugins/org.eclipse.jet/src/org/eclipse/jet/internal/compiler/templates/JET2TransformGenerator.java2
-rw-r--r--plugins/org.eclipse.jet/templates/jet2transform.jet2
-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, 6 insertions, 6 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 b16e549..305ec15 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
@@ -156,7 +156,7 @@ boolean useJava5 = context.hasVariable("useJava5") ? Boolean.valueOf((String)con
String templatePath = (String)i.next();
out.write(" pathToTemplateOrdinalMap.put("); //$NON-NLS-1$
out.write( JavaUtil.asJavaQuotedString(templatePath) );
- out.write(","); //$NON-NLS-1$
+ out.write(", //$NON-NLS-1$"); //$NON-NLS-1$
out.write(NL);
out.write(" new Integer("); //$NON-NLS-1$
out.write( ordinal );
diff --git a/plugins/org.eclipse.jet/templates/jet2transform.jet b/plugins/org.eclipse.jet/templates/jet2transform.jet
index f3f1514..db7d34a 100644
--- a/plugins/org.eclipse.jet/templates/jet2transform.jet
+++ b/plugins/org.eclipse.jet/templates/jet2transform.jet
@@ -87,7 +87,7 @@ public class <%= parms.getClassName() %> implements JET2TemplateLoader,
<% ordinal = 0;
for(Iterator i=templateMap.keySet().iterator(); i.hasNext(); ordinal++) {
String templatePath = (String)i.next(); %>
- pathToTemplateOrdinalMap.put(<%= JavaUtil.asJavaQuotedString(templatePath) %>,
+ pathToTemplateOrdinalMap.put(<%= JavaUtil.asJavaQuotedString(templatePath) %>, //$NON-NLS-1$
new Integer(<%= ordinal %>));
<% } %>
}
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 5545305..f454d3d 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
@@ -46,9 +46,9 @@ public class TemplateLoaderClass implements JET2TemplateLoader,
private static synchronized void initPathToFactoryMap() {
if (pathToTemplateOrdinalMap == null) {
pathToTemplateOrdinalMap = new HashMap(2);
- pathToTemplateOrdinalMap.put("simple.v2.input.jet",
+ pathToTemplateOrdinalMap.put("simple.v2.input.jet", //$NON-NLS-1$
new Integer(0));
- pathToTemplateOrdinalMap.put("simple.v2.input2.jet",
+ pathToTemplateOrdinalMap.put("simple.v2.input2.jet", //$NON-NLS-1$
new Integer(1));
}
}
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 b41aec8..2473e8a 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
@@ -46,9 +46,9 @@ public class TemplateLoaderClass implements JET2TemplateLoader,
private static synchronized void initPathToFactoryMap() {
if (pathToTemplateOrdinalMap == null) {
pathToTemplateOrdinalMap = new HashMap<String,Integer>(2);
- pathToTemplateOrdinalMap.put("simple.v2.input.jet",
+ pathToTemplateOrdinalMap.put("simple.v2.input.jet", //$NON-NLS-1$
new Integer(0));
- pathToTemplateOrdinalMap.put("simple.v2.input2.jet",
+ pathToTemplateOrdinalMap.put("simple.v2.input2.jet", //$NON-NLS-1$
new Integer(1));
}
}

Back to the top