----- Original Message ----- > Signed-off-by: Pekka Enberg <penb...@kernel.org> > --- > java/lang/System.java | 12 ++++++++++++ > 1 files changed, 12 insertions(+), 0 deletions(-) > > diff --git a/java/lang/System.java b/java/lang/System.java > index 51b3259..9d86991 100644 > --- a/java/lang/System.java > +++ b/java/lang/System.java > @@ -97,6 +97,8 @@ public final class System > */ > public static final PrintStream out = > VMSystem.makeStandardOutputStream(); > > + private static final String LINE_SEPARATOR = > SystemProperties.getProperty("line.separator"); > + > /** > * The standard output PrintStream. This is assigned at startup > and > * starts its life perfectly valid. Although it is marked final, > you can > @@ -713,6 +715,16 @@ public final class System > } > > /** > + * Returns the system-dependent line separator. > + * > + * @return the system-dependent line separator. > + */ > + public static String lineSeparator() > + { > + return LINE_SEPARATOR; > + } > + > + /** > * This is a specialised <code>Collection</code>, providing > * the necessary provisions for the collections used by the > * environment variable map. Namely, it prevents > -- > 1.7.6.5 > > >
Fine. -- Andrew :) Free Java Software Engineer Red Hat, Inc. (http://www.redhat.com) PGP Key: 248BDC07 (https://keys.indymedia.org/) Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07