@SuppressWarnings("deprecation") private static Map<String,String> decodeUrl(String s){
  Map<String,String> params=new HashMap<>();
  if (s != null) {
    String array[]=s.split("&");
    for (    String parameter : array) {
      String v[]=parameter.split("=");
      if (v.length > 1) {
        params.put(URLDecoder.decode(v[0]),v.length > 1 ? URLDecoder.decode(v[1]) : null);
      }
    }
  }
  return params;
}

@ SuppressWarnings ( "deprecation" ) private static Map < String , String > decodeUrl ( String s ) { Map < String , String > params = new HashMap < > ( ) ; if ( s != null ) { String array [ ] = s . split ( "&" ) ; for ( String parameter : array ) { String v [ ] = parameter . split ( "=" ) ; if ( v . length > 1 ) { params . put ( URLDecoder . decode ( v [ 0 ] ) , v . length > 1 ? URLDecoder . decode ( v [ 1 ] ) : null ) ; } } } return params ; }
url decoding of query parameters of a url
