Fix ID method

master
Stuart Boston 11 years ago
parent cef5f8f6f0
commit 87646c08e6

@ -78,8 +78,7 @@ public class ApiUrl {
* @return * @return
*/ */
public ApiUrl setSubMethod(int someId, MethodSub submethod) { public ApiUrl setSubMethod(int someId, MethodSub submethod) {
this.submethod = someId + submethod.getValue(); return setSubMethod(String.valueOf(someId), submethod);
return this;
} }
/** /**
@ -90,7 +89,10 @@ public class ApiUrl {
* @return * @return
*/ */
public ApiUrl setSubMethod(String someId, MethodSub submethod) { public ApiUrl setSubMethod(String someId, MethodSub submethod) {
this.submethod = someId + submethod.getValue(); StringBuilder sm = new StringBuilder(someId);
sm.append("/");
sm.append(submethod.getValue());
this.submethod = sm.toString();
return this; return this;
} }

Loading…
Cancel
Save