@Test public void testTypeForName() throws ClassNotFoundException { assertSame(String.class, ClassNameResolver.typeForName("java.lang.String")); assertSame(Integer.class, ClassNameResolver.typeForName("java.lang.Integer")); assertSame(byte[].class, ClassNameResolver.typeForName("byte[]")); assertSame(Integer.TYPE, ClassNameResolver.typeForName("int")); }
public static Class<?> typeForName(String className) { Objects.requireNonNull(className); try { return typeForNameWithExceptions(className); } catch (ClassNotFoundException e) { throw new LmRuntimeException("Class not found: " + className, e); } }
ClassNameResolver { public static Class<?> typeForName(String className) { Objects.requireNonNull(className); try { return typeForNameWithExceptions(className); } catch (ClassNotFoundException e) { throw new LmRuntimeException("Class not found: " + className, e); } } }
ClassNameResolver { public static Class<?> typeForName(String className) { Objects.requireNonNull(className); try { return typeForNameWithExceptions(className); } catch (ClassNotFoundException e) { throw new LmRuntimeException("Class not found: " + className, e); } }  }
ClassNameResolver { public static Class<?> typeForName(String className) { Objects.requireNonNull(className); try { return typeForNameWithExceptions(className); } catch (ClassNotFoundException e) { throw new LmRuntimeException("Class not found: " + className, e); } }  static Class<?> typeForName(String className); }
ClassNameResolver { public static Class<?> typeForName(String className) { Objects.requireNonNull(className); try { return typeForNameWithExceptions(className); } catch (ClassNotFoundException e) { throw new LmRuntimeException("Class not found: " + className, e); } }  static Class<?> typeForName(String className);  }