Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2011-01-31 09:17:01 -0500
committerpelder2011-01-31 09:17:01 -0500
commitb0ea0cd3491b6d8ad90c3129d81d70271f276e42 (patch)
tree7477410e89a58836b8984078392767b16e60ce00
parent3ae538545c5e08dadc6a8d70ee4db73b72e5c290 (diff)
downloadorg.eclipse.jet-b0ea0cd3491b6d8ad90c3129d81d70271f276e42.tar.gz
org.eclipse.jet-b0ea0cd3491b6d8ad90c3129d81d70271f276e42.tar.xz
org.eclipse.jet-b0ea0cd3491b6d8ad90c3129d81d70271f276e42.zip
[333811] The generator produces in JET1 mode different code as the "old" JET generator
-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 04d61b2..11d829c 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
@@ -80,7 +80,7 @@ public class JET1JavaGenerator implements JET2Template {
out.write(" }"); //$NON-NLS-1$
out.write(NL);
out.write(NL);
- out.write(" protected final String NL = nl == null ? (System.getProperties().getProperty(\"line.separator\")) : nl; //$NON-NLS-1$"); //$NON-NLS-1$
+ out.write(" public final String NL = nl == null ? (System.getProperties().getProperty(\"line.separator\")) : nl; //$NON-NLS-1$"); //$NON-NLS-1$
out.write(NL);
cu.accept(new SafeJETASTVisitor(context,out) {
private int textCount = 0;
diff --git a/plugins/org.eclipse.jet/templates/v1/jet2java.jet b/plugins/org.eclipse.jet/templates/v1/jet2java.jet
index 38a5e41..7f8bea8 100644
--- a/plugins/org.eclipse.jet/templates/v1/jet2java.jet
+++ b/plugins/org.eclipse.jet/templates/v1/jet2java.jet
@@ -39,7 +39,7 @@ public class <%= cu.getOutputJavaClassName() %><%
return result;
}
- protected final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; //$NON-NLS-1$
+ public 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) {

Back to the top