File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
googlestorage/src/main/java/ch/cyberduck/core/googlestorage Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ public BackgroundException map(final IOException failure) {
7676 * @param response Error response with JSON body
7777 * @return Error message parsed from error key
7878 */
79- public String parse (final HttpResponse response ) {
79+ public static String parse (final HttpResponse response ) {
8080 if (response .getEntity () != null ) {
8181 try (JsonParser parser = new GsonFactory ().createJsonParser (response .getEntity ().getContent ())) {
8282 JsonToken currentToken = parser .getCurrentToken ();
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ else if(Acl.CANNED_BUCKET_OWNER_READ.equals(status.getAcl())) {
145145 default :
146146 throw new DefaultHttpResponseExceptionMappingService ().map (
147147 new HttpResponseException (response .getStatusLine ().getStatusCode (),
148- new GoogleStorageExceptionMappingService () .parse (response )));
148+ GoogleStorageExceptionMappingService .parse (response )));
149149 }
150150 }
151151 finally {
@@ -166,7 +166,7 @@ else if(Acl.CANNED_BUCKET_OWNER_READ.equals(status.getAcl())) {
166166 default :
167167 throw new DefaultHttpResponseExceptionMappingService ().map (
168168 new HttpResponseException (putResponse .getStatusLine ().getStatusCode (),
169- new GoogleStorageExceptionMappingService () .parse (putResponse )));
169+ GoogleStorageExceptionMappingService .parse (putResponse )));
170170 }
171171 }
172172 finally {
@@ -176,7 +176,7 @@ else if(Acl.CANNED_BUCKET_OWNER_READ.equals(status.getAcl())) {
176176 else {
177177 throw new DefaultHttpResponseExceptionMappingService ().map (
178178 new HttpResponseException (response .getStatusLine ().getStatusCode (),
179- new GoogleStorageExceptionMappingService () .parse (response )));
179+ GoogleStorageExceptionMappingService .parse (response )));
180180 }
181181 }
182182 catch (IOException e ) {
You can’t perform that action at this time.
0 commit comments