Skip to content

Commit 0202d25

Browse files
author
Jarkko Laitinen
committed
Merge branch 'development'
2 parents 56dabd7 + e570fbc commit 0202d25

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

fi/cosky/sdk/API.java

+2-7
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ public <T extends BaseData> T navigate(Class<T> tClass, Link l) throws IOExcepti
9898
@SuppressWarnings("unchecked")
9999
public <T extends BaseData> T navigate(Class<T> tClass, Link l, HashMap<String, String> queryParameters) throws IOException {
100100
Object result;
101+
retry = true;
101102
long start = 0;
102103
long end;
103104

@@ -430,13 +431,7 @@ private boolean doOutput(Verb verb) {
430431
}
431432

432433
private boolean doOutput(String verb) {
433-
switch (verb) {
434-
case "GET":
435-
case "DELETE":
436-
return false;
437-
default:
438-
return true;
439-
}
434+
return (verb.equals("POST") || verb.equals("PUT") || verb.equals("PATCH"));
440435
}
441436

442437
private enum Verb {

0 commit comments

Comments
 (0)