*/
public class LangUtil {
- public static final String EOL;
+ public static final String EOL = System.lineSeparator();
public static final String JRT_FS = "jrt-fs.jar";
return vmVersion;
}
- static {
- StringWriter buf = new StringWriter();
- PrintWriter writer = new PrintWriter(buf);
- writer.println("");
- String eol = "\n";
- try {
- buf.close();
- StringBuffer sb = buf.getBuffer();
- if (sb != null) {
- eol = buf.toString();
- }
- } catch (Throwable t) {
- }
- EOL = eol;
- }
-
static {
// http://www.oracle.com/technetwork/java/javase/versioning-naming-139433.html
// http://openjdk.java.net/jeps/223 "New Version-String Scheme"