changeset 14016 | 56be5085fc31 |
parent 12448 | b95438b17098 |
child 14228 | 131a42bc2c20 |
child 14191 | 01f4a54604a6 |
--- a/jdk/src/share/classes/java/util/ServiceLoader.java Tue Oct 02 10:11:57 2012 +0100 +++ b/jdk/src/share/classes/java/util/ServiceLoader.java Tue Oct 02 10:36:05 2012 +0100 @@ -213,7 +213,7 @@ } private ServiceLoader(Class<S> svc, ClassLoader cl) { - service = svc; + service = Objects.requireNonNull(svc, "Service interface cannot be null"); loader = cl; reload(); }