Skip to content

Commit 290e6f1

Browse files
committed
SeriesInfoExtractorServiceImpl: rename local variable (candidates -> names).
Follow-up to #821 No functional changes.
1 parent 52be3cc commit 290e6f1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/ru/mystamps/web/service/SeriesInfoExtractorServiceImpl.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ protected List<Integer> extractCategory(String fragment) {
113113

114114
log.debug("Determining category from a fragment: '{}'", fragment);
115115

116-
String[] candidates = StringUtils.split(fragment, "\n\t ,");
117-
List<String> uniqueCandidates = Arrays.stream(candidates)
116+
String[] names = StringUtils.split(fragment, "\n\t ,");
117+
List<String> uniqueCandidates = Arrays.stream(names)
118118
.filter(tooShortCategoryName)
119119
.filter(tooLongCategoryName)
120120
.filter(invalidCategoryName)
@@ -153,8 +153,8 @@ protected List<Integer> extractCountry(String fragment) {
153153

154154
log.debug("Determining country from a fragment: '{}'", fragment);
155155

156-
String[] candidates = StringUtils.split(fragment, "\n\t ,");
157-
List<String> uniqueCandidates = Arrays.stream(candidates)
156+
String[] names = StringUtils.split(fragment, "\n\t ,");
157+
List<String> uniqueCandidates = Arrays.stream(names)
158158
.filter(tooShortCountryName)
159159
.filter(tooLongCountryName)
160160
.filter(invalidCountryName)

0 commit comments

Comments
 (0)