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