Load a class, if the class is not found, a ClassNotFoundException will be thrown. @param className The class name. @return The class. @throws ClassNotFoundException If the class is not found.
(String className)
| 101 | * @throws ClassNotFoundException If the class is not found. |
| 102 | */ |
| 103 | @NonNull |
| 104 | public static Class<?> loadClass(String className) throws ClassNotFoundException { |
| 105 | Class<?> ret = load(className); |
| 106 | if (ret == null) { |
| 107 | throw new ClassNotFoundException(className); |
| 108 | } |
| 109 | return ret; |
| 110 | } |
| 111 | |
| 112 | @NonNull |
| 113 | public static Class<?> loadClassEither(@NonNull String... classNames) throws ClassNotFoundException { |
no test coverage detected