--- a/jdk/src/share/classes/java/util/Formatter.java Mon Dec 07 15:32:26 2009 -0800
+++ b/jdk/src/share/classes/java/util/Formatter.java Mon Dec 07 16:44:40 2009 -0800
@@ -2552,9 +2552,6 @@
private boolean dt = false;
private char c;
- // cache the line separator
- private String ls;
-
private int index(String s) {
if (s != null) {
try {
@@ -2702,9 +2699,7 @@
printHashCode(arg);
break;
case Conversion.LINE_SEPARATOR:
- if (ls == null)
- ls = System.getProperty("line.separator");
- a.append(ls);
+ a.append(System.lineSeparator());
break;
case Conversion.PERCENT_SIGN:
a.append('%');