fix(TDI-39625): System routine BufferedOutput using sun api (#1287)
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user