refactor: 代码规范
This commit is contained in:
parent
2f375f5673
commit
786820447b
|
@ -33,16 +33,13 @@ import java.util.UUID;
|
||||||
|
|
||||||
public class JiraPlatform extends AbstractIssuePlatform {
|
public class JiraPlatform extends AbstractIssuePlatform {
|
||||||
|
|
||||||
{
|
|
||||||
this.key = IssuesManagePlatform.Jira.name();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected JiraClientV2 jiraClientV2;
|
protected JiraClientV2 jiraClientV2;
|
||||||
|
|
||||||
public JiraPlatform(IssuesRequest issuesRequest) {
|
public JiraPlatform(IssuesRequest issuesRequest) {
|
||||||
super(issuesRequest);
|
super(issuesRequest);
|
||||||
jiraClientV2 = new JiraClientV2();
|
jiraClientV2 = new JiraClientV2();
|
||||||
setConfig();
|
setConfig();
|
||||||
|
this.key = IssuesManagePlatform.Jira.name();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -34,16 +34,13 @@ import java.util.stream.Collectors;
|
||||||
|
|
||||||
public class TapdPlatform extends AbstractIssuePlatform {
|
public class TapdPlatform extends AbstractIssuePlatform {
|
||||||
|
|
||||||
{
|
|
||||||
this.key = IssuesManagePlatform.Tapd.name();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected TapdClient tapdClient;
|
protected TapdClient tapdClient;
|
||||||
|
|
||||||
public TapdPlatform(IssuesRequest issueRequest) {
|
public TapdPlatform(IssuesRequest issueRequest) {
|
||||||
super(issueRequest);
|
super(issueRequest);
|
||||||
tapdClient = new TapdClient();
|
tapdClient = new TapdClient();
|
||||||
setConfig();
|
setConfig();
|
||||||
|
this.key = IssuesManagePlatform.Tapd.name();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -37,16 +37,13 @@ import java.util.regex.Pattern;
|
||||||
public class ZentaoPlatform extends AbstractIssuePlatform {
|
public class ZentaoPlatform extends AbstractIssuePlatform {
|
||||||
protected final ZentaoClient zentaoClient;
|
protected final ZentaoClient zentaoClient;
|
||||||
|
|
||||||
{
|
|
||||||
this.key = IssuesManagePlatform.Zentao.name();
|
|
||||||
}
|
|
||||||
|
|
||||||
public ZentaoPlatform(IssuesRequest issuesRequest) {
|
public ZentaoPlatform(IssuesRequest issuesRequest) {
|
||||||
super(issuesRequest);
|
super(issuesRequest);
|
||||||
ZentaoConfig zentaoConfig = getConfig();
|
ZentaoConfig zentaoConfig = getConfig();
|
||||||
this.workspaceId = issuesRequest.getWorkspaceId();
|
this.workspaceId = issuesRequest.getWorkspaceId();
|
||||||
this.zentaoClient = ZentaoFactory.getInstance(zentaoConfig.getUrl(), zentaoConfig.getRequest());
|
this.zentaoClient = ZentaoFactory.getInstance(zentaoConfig.getUrl(), zentaoConfig.getRequest());
|
||||||
this.zentaoClient.setConfig(zentaoConfig);
|
this.zentaoClient.setConfig(zentaoConfig);
|
||||||
|
this.key = IssuesManagePlatform.Zentao.name();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 9bf16c139996aa74c1a37023c2b22c524351c488
|
Subproject commit 22b92e86e3426ddc38b5295b3e42239694ed66c3
|
Loading…
Reference in New Issue