question: public static URL resolveURL ( URL base , String target ) throws MalformedURLException { target = target . trim ( ) ; if ( target . startsWith ( "?" ) ) { return fixPureQueryTargets ( base , target ) ; } return new URL ( base , target ) ; }
target:  Resolve relative URL-s and fix a java.net.URL error in handling of URLs with pure query targets.