From 3e489374ee09a7e6edf17a7b66583d0437357711 Mon Sep 17 00:00:00 2001 From: Ulli Hafner Date: Fri, 19 Jan 2024 12:32:21 +0100 Subject: [PATCH] Improve naming. --- src/main/java/edu/hm/hafner/analysis/IssueDifference.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/edu/hm/hafner/analysis/IssueDifference.java b/src/main/java/edu/hm/hafner/analysis/IssueDifference.java index 239aeafb3..e4011d968 100644 --- a/src/main/java/edu/hm/hafner/analysis/IssueDifference.java +++ b/src/main/java/edu/hm/hafner/analysis/IssueDifference.java @@ -78,11 +78,11 @@ public IssueDifference(final Report currentIssues, final String referenceId, newIssues.forEach(issue -> issue.setReference(referenceId)); if (!includes.isEmpty()) { - keepOnlyIncludedIssues(includes); + findIssuesInChangedCode(includes); } } - private void keepOnlyIncludedIssues(final Map includes) { + private void findIssuesInChangedCode(final Map includes) { for (Entry include : includes.entrySet()) { newIssues.filter(issue -> filter(issue, include.getKey(), include.getValue())) .stream()