remove dependence of package sun.security.action for ResponseUtilTest.java (#10478)

This commit is contained in:
chenyiqin 2023-05-16 10:21:06 +08:00 committed by GitHub
parent 6cde13be92
commit 62a106bc1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,8 +24,7 @@ import java.io.UnsupportedEncodingException;
public class ResponseUtilTest { public class ResponseUtilTest {
String lineSeparator = java.security.AccessController.doPrivileged( String lineSeparator = System.lineSeparator();
new sun.security.action.GetPropertyAction("line.separator"));
@Test @Test
public void testWriteErrMsg() { public void testWriteErrMsg() {