fix(TDI-39625): System routine BufferedOutput using sun api (#1287)

This commit is contained in:
wang wei
2017-11-16 13:53:22 +08:00
committed by GitHub
parent c1190dfa35
commit b3a63df08b

View File

@@ -64,8 +64,16 @@ public class BufferedOutput extends java.io.Writer {
nChars = sz;
nextChar = 0;
lineSeparator = (String) java.security.AccessController.doPrivileged(new sun.security.action.GetPropertyAction(
"line.separator")); //$NON-NLS-1$
lineSeparator = java.security.AccessController.doPrivileged(
new java.security.PrivilegedAction<String>() {
@Override
public String run() {
return System.getProperty("line.separator"); //$NON-NLS-1$
}
}
);
}
/** Check to make sure that the stream has not been closed */