This commit is contained in:
tanghc
2019-09-10 09:11:27 +08:00
parent e62c6ee9a3
commit 3021345dd6

View File

@@ -56,14 +56,11 @@ public abstract class BaseRequest<T extends BaseResponse> {
protected abstract String method();
public BaseRequest() {
this.setMethodVersion(this.method(), this.version());
this.method = method();
this.version = version();
}
protected BaseRequest(String method, String version) {
this.setMethodVersion(method, version);
}
private void setMethodVersion(String method, String version) {
this.method = method;
this.version = version;
}