Skip to content

Commit 645b612

Browse files
committed
Make static.
1 parent e5de5d1 commit 645b612

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

googlestorage/src/main/java/ch/cyberduck/core/googlestorage/GoogleStorageExceptionMappingService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

googlestorage/src/main/java/ch/cyberduck/core/googlestorage/GoogleStorageWriteFeature.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)