修复插件在ide的5.0版本不可用bug

Signed-off-by: jwx1102601 <jiangqianjin@huawei.com>
This commit is contained in:
jwx1102601 2024-03-26 15:39:24 +08:00
parent a22f82debe
commit 5486d69720
2 changed files with 8 additions and 8 deletions

View File

@ -365,7 +365,7 @@ public class UpdateCheckWizardDialog extends DialogWrapper {
UpdateCheckReportDto updateCheckReportDto = new UpdateCheckReportDto();
// fill data
updateCheckReportDto.setApiDefinition(this.deprecatedApiResults.get(i).getApiRawText());
updateCheckReportDto.setApiDefinition(this.deprecatedApiResults.get(i).getApiText());
String reminderInformation =
(StringUtils.isBlank(this.deprecatedApiResults.get(i).getUseinstead()))
? ConstString.get("obsolete.version.change.to")
@ -384,7 +384,7 @@ public class UpdateCheckWizardDialog extends DialogWrapper {
private boolean judgeApi(ApiDiffResultDto apiDto, CollectApplicationApiDto collApiDto) {
return apiDto.getDtsName().equals(collApiDto.getDtsName())
&& apiDto.getRawText().equals(collApiDto.getApiRawText())
&& apiDto.getRawText().equals(collApiDto.getApiText())
&& apiDto.getClassName().equals(collApiDto.getTypeName());
}

View File

@ -24,7 +24,7 @@ public class CollectApplicationApiDto {
private String packageName;
private String typeName;
private String propertyName;
private String apiRawText;
private String apiText;
private String deprecated;
private String applicationFile;
private String pos;
@ -64,12 +64,12 @@ public class CollectApplicationApiDto {
this.propertyName = propertyName;
}
public String getApiRawText() {
return apiRawText;
public String getApiText() {
return apiText;
}
public void setApiRawText(String apiRawText) {
this.apiRawText = apiRawText;
public void setApiText(String apiText) {
this.apiText = apiText;
}
public String getDeprecated() {
@ -118,7 +118,7 @@ public class CollectApplicationApiDto {
"packageName='" + packageName + '\'' +
", className='" + typeName + '\'' +
", methodName='" + propertyName + '\'' +
", methodText='" + apiRawText + '\'' +
", methodText='" + apiText + '\'' +
", deprecated='" + deprecated + '\'' +
", applicationFile='" + applicationFile + '\'' +
", pos='" + pos + '\'' +