@Test public void testEntireUnicodeRange() throws UnsupportedEncodingException { for (int i = MIN_CODE_POINT; i < MAX_CODE_POINT; i++) { if (isSurrogate((char) i)) { continue; } final String s = String.valueOf(Character.toChars(i)); final String encoded = urlPathSegmentEscaper().escape(s); final CharSequence decoded = Encoding.decode(encoded); assertThat(decoded.toString(), is(s)); } }
static CharSequence decode(final CharSequence s) { if (!contains(s, '%')) { return s.toString(); } return decode0(s); }
Encoding { static CharSequence decode(final CharSequence s) { if (!contains(s, '%')) { return s.toString(); } return decode0(s); } }
Encoding { static CharSequence decode(final CharSequence s) { if (!contains(s, '%')) { return s.toString(); } return decode0(s); } private  Encoding(); }
Encoding { static CharSequence decode(final CharSequence s) { if (!contains(s, '%')) { return s.toString(); } return decode0(s); } private  Encoding();  }
Encoding { static CharSequence decode(final CharSequence s) { if (!contains(s, '%')) { return s.toString(); } return decode0(s); } private  Encoding();   }