private static URL createURLSneakily ( final String urlString ) { try { return new URL ( urlString ) ; } catch ( MalformedURLException e ) { throw new RuntimeException ( e ) ; } }
Creates a URL instance from a String representation of a URL without throwing a checked exception . Required because you can t wrap a call to another constructor in a try statement .