File tree Expand file tree Collapse file tree
branches/pubsub-alpha/gcloud-java-gax
src/main/java/io/gapi/gax/protobuf Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ refs/heads/master: a25e50430b55b93816be392e363638e67f67a500
33refs/heads/travis: e21ee7b88a5edc3f3d8c71f90c3fc32abf7e8dd6
44refs/heads/gh-pages: d1b373c30c176edc08692348167bec3a244bb823
55refs/heads/bigquery: 762fa5830e6c398c0396177e3e7fd243bd62cfc3
6- refs/heads/pubsub-alpha: 56ad0999fc3a095599c952aa419631857384be5e
6+ refs/heads/pubsub-alpha: 02058b376df10940c026152fed85886b16042947
Original file line number Diff line number Diff line change 2727 <artifactId >auto-value</artifactId >
2828 <version >1.1</version >
2929 </dependency >
30+ <dependency >
31+ <groupId >com.google.code.findbugs</groupId >
32+ <artifactId >jsr305</artifactId >
33+ <version >3.0.1</version >
34+ </dependency >
3035 <dependency >
3136 <groupId >junit</groupId >
3237 <artifactId >junit</artifactId >
Original file line number Diff line number Diff line change 1111import java .io .UnsupportedEncodingException ;
1212import java .net .URLDecoder ;
1313import java .net .URLEncoder ;
14+ import java .nio .charset .StandardCharsets ;
1415import java .util .List ;
1516import java .util .ListIterator ;
1617import java .util .Map ;
@@ -766,15 +767,15 @@ private static ImmutableList<Segment> parseTemplate(String template) {
766767
767768 private static String encodeUrl (String text ) {
768769 try {
769- return URLEncoder .encode (text , "UTF-8" );
770+ return URLEncoder .encode (text , StandardCharsets . UTF_8 . name () );
770771 } catch (UnsupportedEncodingException e ) {
771772 throw new ValidationException ("UTF-8 encoding is not supported on this platform" );
772773 }
773774 }
774775
775776 private static String decodeUrl (String url ) {
776777 try {
777- return URLDecoder .decode (url , "UTF-8" );
778+ return URLDecoder .decode (url , StandardCharsets . UTF_8 . name () );
778779 } catch (UnsupportedEncodingException e ) {
779780 throw new ValidationException ("UTF-8 encoding is not supported on this platform" );
780781 }
You can’t perform that action at this time.
0 commit comments