类名修改适配
All checks were successful
类变更检测 / class-change-check (push) Successful in 16s

This commit is contained in:
2026-06-08 15:21:06 +08:00
parent 17aa214952
commit 6d8cc0eddc
4 changed files with 19 additions and 6 deletions

View File

@@ -22,14 +22,10 @@ public class ImpactAnalyzer {
private final ConversionParser conversionParser = new ConversionParser();
/**
* 填充 report 的影响列表;RENAME_ONLY 跳过Entity/Model 不匹配接口。
* 填充 report 的影响列表;新旧类名均参与匹配Entity/Model 不匹配接口。
*/
public void analyze(ClassChangeReport report, Map<String, ApiEndpoint> endpointIndex,
AppConfig config, Path repoRoot, String newSource, String oldSource) throws IOException {
if (report.isRenameOnly()) {
return;
}
Set<String> matchNames = namesForMatching(report);
if (report.getClassType() != ClassType.ENTITY && report.getClassType() != ClassType.MODEL) {