src/java.base/share/classes/java/lang/ClassLoader.java
changeset 49067 c153e9daadce
parent 48984 b5d1fb0701d4
parent 49037 dc68aeea4840
child 49511 ba93b3928e7c
--- a/src/java.base/share/classes/java/lang/ClassLoader.java	Wed Feb 28 15:28:46 2018 +0100
+++ b/src/java.base/share/classes/java/lang/ClassLoader.java	Sun Feb 25 04:59:43 2018 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -650,21 +650,6 @@
         return lock;
     }
 
-    // This method is invoked by the virtual machine to load a class.
-    private Class<?> loadClassInternal(String name)
-        throws ClassNotFoundException
-    {
-        // For backward compatibility, explicitly lock on 'this' when
-        // the current class loader is not parallel capable.
-        if (parallelLockMap == null) {
-            synchronized (this) {
-                 return loadClass(name);
-            }
-        } else {
-            return loadClass(name);
-        }
-    }
-
     // Invoked by the VM after loading class with this loader.
     private void checkPackageAccess(Class<?> cls, ProtectionDomain pd) {
         final SecurityManager sm = System.getSecurityManager();