Skip to content

Commit f2e1c56

Browse files
Remove unnecessary sun.* imports
1 parent 6b422b1 commit f2e1c56

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

src/main/java/java/lang/Class.java

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
import java.util.HashMap;
2929
import java.util.Map;
3030

31-
import sun.reflect.CallerSensitive;
32-
import sun.reflect.Reflection;
31+
// import sun.reflect.CallerSensitive;
32+
// import sun.reflect.Reflection;
3333

3434
import org.cprover.CProver;
3535
import org.cprover.CProverString;
@@ -179,16 +179,17 @@ public String getName() {
179179
* @see SecurityManager#checkPermission
180180
* @see java.lang.RuntimePermission
181181
*/
182-
@CallerSensitive
182+
// @CallerSensitive
183183
public ClassLoader getClassLoader() {
184-
ClassLoader cl = getClassLoader0();
185-
if (cl == null)
186-
return null;
187-
SecurityManager sm = System.getSecurityManager();
188-
if (sm != null) {
189-
ClassLoader.checkClassLoaderPermission(cl, Reflection.getCallerClass());
190-
}
191-
return cl;
184+
// ClassLoader cl = getClassLoader0();
185+
// if (cl == null)
186+
// return null;
187+
// SecurityManager sm = System.getSecurityManager();
188+
// if (sm != null) {
189+
// ClassLoader.checkClassLoaderPermission(cl, Reflection.getCallerClass());
190+
// }
191+
// return cl;
192+
return null;
192193
}
193194

194195
ClassLoader getClassLoader0() {

src/main/java/java/lang/Math.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
package java.lang;
2727
import java.util.Random;
2828

29-
import sun.misc.FloatConsts;
30-
import sun.misc.DoubleConsts;
29+
// import sun.misc.FloatConsts;
30+
// import sun.misc.DoubleConsts;
3131

3232
import org.cprover.CProver;
3333

0 commit comments

Comments
 (0)