METHOD_0 ( ) { com . IDENT_0 . commons . util . URL IDENT_1 = com . IDENT_0 . commons . util . IDENT_2 . parse ( STRING_0 ) ; com . IDENT_0 . commons . util . URL IDENT_3 = com . IDENT_0 . commons . util . IDENT_2 . parse ( STRING_0 ) ; "<AssertPlaceHolder>" ; } parse ( java . lang . String ) { int pos = 0 ; int i = url . indexOf ( STRING_1 4 ) ; if ( i < 0 ) { throw new java . net . METHOD_1 ( ( ( STRING_2 + url ) + STRING_1 ) ) ; } com . IDENT_0 . commons . util . URL r = new com . IDENT_0 . commons . util . URL ( ) ; java . lang . String protocol = url . substring ( 0 , i ) ; r . METHOD_2 ( protocol ) ; pos = i + 3 ; i = url . indexOf ( STRING_3 , pos ) ; if ( i >= 0 ) { java . lang . String IDENT_4 = url . substring ( pos , i ) ; int IDENT_5 = IDENT_4 . indexOf ( STRING_4 ) ; if ( IDENT_5 >= 0 ) { java . lang . String IDENT_6 = IDENT_4 . substring ( 0 , IDENT_5 ) ; java . lang . String IDENT_7 = IDENT_4 . substring ( ( IDENT_5 + 1 ) ) ; if ( ( IDENT_6 != null ) && ( ( IDENT_6 . length ( ) ) > 0 ) ) { r . METHOD_3 ( com . IDENT_0 . commons . util . IDENT_2 . decode ( IDENT_6 ) ) ; } if ( ( IDENT_7 != null ) && ( ( IDENT_7 . length ( ) ) > 0 ) ) { r . METHOD_4 ( com . IDENT_0 . commons . util . IDENT_2 . decode ( IDENT_7 ) ) ; } } else { if ( ( IDENT_4 . length ( ) ) > 0 ) { r . METHOD_3 ( com . IDENT_0 . commons . util . IDENT_2 . decode ( IDENT_4 ) ) ; } } pos = i + 1 ; } i = url . indexOf ( STRING_5 , pos ) ; if ( i < 0 ) { i = url . indexOf ( STRING_6 , pos ) ; if ( i < 0 ) { i = url . length ( ) ; } } java . lang . String IDENT_8 = url . substring ( pos , i ) ; if ( ( IDENT_8 != null ) && ( ( IDENT_8 . length ( ) ) > 0 ) ) { int IDENT_9 = IDENT_8 . indexOf ( STRING_4 ) ; if ( IDENT_9 >= 0 ) { java . lang . String host = IDENT_8 . substring ( 0 , IDENT_9 ) ; r . METHOD_5 ( host ) ; java . lang . String IDENT_10 = IDENT_8 . substring ( ( IDENT_9 + 1 ) ) ; try { java . lang . Integer port = java . lang . Integer . valueOf ( IDENT_10 ) ; r . METHOD_6 ( port ) ; } catch ( java . lang . IDENT_11 e ) { throw new java . net . METHOD_1 ( ( ( ( ( STRING_2 + url ) + STRING_1 1 ) + IDENT_10 ) + STRING_7 ) ) ; } } else { r . METHOD_5 ( IDENT_8 ) ; } } else { } pos = i ; if ( pos >= ( url . length ( ) ) ) { return r ; } if ( ( url . charAt ( pos ) ) == STRING_5 ) { i = url . indexOf ( STRING_6 ) ; if ( i < 0 ) { i = url . length ( ) ; } java . lang . String path = url . substring ( pos , i ) ; r . METHOD_7 ( com . IDENT_0 . commons . util . IDENT_2 . decode ( path ) ) ; } pos = i ; if ( pos >= ( url . length ( ) ) ) { return r ; } if ( ( url . charAt ( pos ) ) == STRING_6 ) { java . lang . String query = url . substring ( ( pos + 1 ) ) ; if ( ( query != null ) && ( ( query . length ( ) ) > 0 ) ) { r . METHOD_8 ( query ) ; } } return r ; }
org . junit . Assert . assertEquals ( IDENT_1 , IDENT_3 )