public static Type typeFromString(String type) { final PrimitiveType primitive = PrimitiveType.fromName(type); if (primitive != null) { return primitive.getKeyClass(); } try { return loadClassByName(type); } catch (Exception e) { LOGGER.error(String.format("Failed to resolve '%s' into class", type), e); } return null; }
public static Type typeFromString(String type) { final PrimitiveType primitive = PrimitiveType.fromName(type); if (primitive != null) { return primitive.getKeyClass(); } try { return loadClassByName(type); } catch (Exception e) { LOGGER.error(String.format("Failed to resolve '%s' into class", type), e); } return null; }