Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2007-05-22 15:45:34 -0400
committerpelder2007-05-22 15:45:34 -0400
commit9aa330f3e4a1ecb4a705ba8eae64bb18084c9339 (patch)
treea3b16b57f79770a42d82c5a50bb294e84b67f2db /tests/org.eclipse.jet.tests
parente4e178c19d40345d98dbdd43dfe8b9003081141a (diff)
downloadorg.eclipse.jet-9aa330f3e4a1ecb4a705ba8eae64bb18084c9339.tar.gz
org.eclipse.jet-9aa330f3e4a1ecb4a705ba8eae64bb18084c9339.tar.xz
org.eclipse.jet-9aa330f3e4a1ecb4a705ba8eae64bb18084c9339.zip
[187871] Generated NL constant in JET2 templates is inefficient and sometimes unnecessary
Diffstat (limited to 'tests/org.eclipse.jet.tests')
-rw-r--r--tests/org.eclipse.jet.tests/data/simplifiedCompiler/templates/simple.v2.input.jet.expected.java2
-rw-r--r--tests/org.eclipse.jet.tests/data/simplifiedCompiler/templates/simple.v2.usePredefTagLibs.jet.nopredefs.expected.java2
-rw-r--r--tests/org.eclipse.jet.tests/data/simplifiedCompiler/templates/simple.v2.usePredefTagLibs.jet.predefs.expected.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/org.eclipse.jet.tests/data/simplifiedCompiler/templates/simple.v2.input.jet.expected.java b/tests/org.eclipse.jet.tests/data/simplifiedCompiler/templates/simple.v2.input.jet.expected.java
index bb25c36..b0a469b 100644
--- a/tests/org.eclipse.jet.tests/data/simplifiedCompiler/templates/simple.v2.input.jet.expected.java
+++ b/tests/org.eclipse.jet.tests/data/simplifiedCompiler/templates/simple.v2.input.jet.expected.java
@@ -13,7 +13,7 @@ public class _jet_simplev2input implements JET2Template {
super();
}
- private static final String NL = System.getProperties().getProperty("line.separator"); //$NON-NLS-1$
+ private static final String NL = System.getProperty("line.separator"); //$NON-NLS-1$
private static final TagInfo _td_test_tokenize_4_1 = new TagInfo("test:tokenize", //$NON-NLS-1$
4, 1,
diff --git a/tests/org.eclipse.jet.tests/data/simplifiedCompiler/templates/simple.v2.usePredefTagLibs.jet.nopredefs.expected.java b/tests/org.eclipse.jet.tests/data/simplifiedCompiler/templates/simple.v2.usePredefTagLibs.jet.nopredefs.expected.java
index 3baccfb..4757149 100644
--- a/tests/org.eclipse.jet.tests/data/simplifiedCompiler/templates/simple.v2.usePredefTagLibs.jet.nopredefs.expected.java
+++ b/tests/org.eclipse.jet.tests/data/simplifiedCompiler/templates/simple.v2.usePredefTagLibs.jet.nopredefs.expected.java
@@ -10,7 +10,7 @@ public class _jet_simplev2usePredefTagLibs implements JET2Template {
super();
}
- private static final String NL = System.getProperties().getProperty("line.separator"); //$NON-NLS-1$
+ private static final String NL = System.getProperty("line.separator"); //$NON-NLS-1$
public void generate(final JET2Context context, final JET2Writer __out) {
JET2Writer out = __out;
diff --git a/tests/org.eclipse.jet.tests/data/simplifiedCompiler/templates/simple.v2.usePredefTagLibs.jet.predefs.expected.java b/tests/org.eclipse.jet.tests/data/simplifiedCompiler/templates/simple.v2.usePredefTagLibs.jet.predefs.expected.java
index dfe6f79..bb5ad30 100644
--- a/tests/org.eclipse.jet.tests/data/simplifiedCompiler/templates/simple.v2.usePredefTagLibs.jet.predefs.expected.java
+++ b/tests/org.eclipse.jet.tests/data/simplifiedCompiler/templates/simple.v2.usePredefTagLibs.jet.predefs.expected.java
@@ -13,7 +13,7 @@ public class _jet_simplev2usePredefTagLibs implements JET2Template {
super();
}
- private static final String NL = System.getProperties().getProperty("line.separator"); //$NON-NLS-1$
+ private static final String NL = System.getProperty("line.separator"); //$NON-NLS-1$
private static final TagInfo _td_c_get_3_1 = new TagInfo("c:get", //$NON-NLS-1$
3, 1,

Back to the top