summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2007-05-02 13:16:42 (EDT)
committer pelder2007-05-02 13:16:42 (EDT)
commit8e67ef4fb3949b9c4c899f0d4f0e787e2968fa14 (patch)
tree4205c5b02c0f74afd16ed4e610eb67303b068abf
parentc4bc0a1084f23db6eeabd41798a45f407a9cb922 (diff)
downloadorg.eclipse.jet-8e67ef4fb3949b9c4c899f0d4f0e787e2968fa14.zip
org.eclipse.jet-8e67ef4fb3949b9c4c899f0d4f0e787e2968fa14.tar.gz
org.eclipse.jet-8e67ef4fb3949b9c4c899f0d4f0e787e2968fa14.tar.bz2
[184701] Minimize possible compiler warnings on generated JET1 code.
-rw-r--r--plugins/org.eclipse.jet/src/org/eclipse/jet/internal/compiler/templates/v1/JET1JavaGenerator.java2
-rw-r--r--plugins/org.eclipse.jet/templates/v1/jet2java.jet2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/compiler/templates/v1/JET1JavaGenerator.java b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/compiler/templates/v1/JET1JavaGenerator.java
index a534a27..2467796 100644
--- a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/compiler/templates/v1/JET1JavaGenerator.java
+++ b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/compiler/templates/v1/JET1JavaGenerator.java
@@ -28,7 +28,7 @@ public class JET1JavaGenerator implements JET2Template {
private static final String TEXT_9 = " protected static String nl;" + NL + " public static synchronized "; //$NON-NLS-1$ //$NON-NLS-2$
private static final String TEXT_10 = " create(String lineSeparator)" + NL + " {" + NL + " nl = lineSeparator;" + NL + " "; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
private static final String TEXT_11 = " result = new "; //$NON-NLS-1$
- private static final String TEXT_12 = "();" + NL + " nl = null;" + NL + " return result;" + NL + " }" + NL + NL + " protected final String NL = nl == null ? (System.getProperties().getProperty(\"line.separator\")) : nl;" + NL; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
+ private static final String TEXT_12 = "();" + NL + " nl = null;" + NL + " return result;" + NL + " }" + NL + NL + " protected final String NL = nl == null ? (System.getProperties().getProperty(\"line.separator\")) : nl; //$NON-NLS-1$" + NL; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
private static final String TEXT_13 = " protected final String TEXT_"; //$NON-NLS-1$
private static final String TEXT_14 = " = "; //$NON-NLS-1$
private static final String TEXT_15 = ";"; //$NON-NLS-1$
diff --git a/plugins/org.eclipse.jet/templates/v1/jet2java.jet b/plugins/org.eclipse.jet/templates/v1/jet2java.jet
index a869713..1c49546 100644
--- a/plugins/org.eclipse.jet/templates/v1/jet2java.jet
+++ b/plugins/org.eclipse.jet/templates/v1/jet2java.jet
@@ -35,7 +35,7 @@ public class <%= cu.getOutputJavaClassName() %>
return result;
}
- protected final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
+ protected final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; //$NON-NLS-1$
<% cu.accept(new SafeJETASTVisitor(context,out) {
private int textCount = 0;
public boolean visit(TextElement text) {