private static String merge ( String path , String relativePath , boolean hasAuthority ) { String parent = path ; if ( hasAuthority && parent . isEmpty ( ) ) { parent = SLASH ; } return parent . substring ( 0 , parent . lastIndexOf ( ' ' ) + 1 ) . concat ( relativePath ) ; }
5 . 2 . 3 . Merge Paths