Skip to content

Commit ab7604d

Browse files
committed
task: add more cases for a CANCELLED condition.
Part of #1326
1 parent 57d22e7 commit ab7604d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/ru/mystamps/web/feature/series/importing/SeriesInfoExtractorServiceImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,6 @@ public SeriesExtractedInfo extract(String pageUrl, RawParsedDataDto data) {
501501
// @todo #1326 SeriesInfoExtractorServiceImpl.extractCondition(): add unit tests
502502
@SuppressWarnings({
503503
"checkstyle:missingswitchdefault",
504-
"PMD.TooFewBranchesForASwitchStatement",
505504
"PMD.SwitchStmtsShouldHaveDefault"
506505
})
507506
/* default */ SeriesCondition extractCondition(String fragment) {
@@ -522,7 +521,9 @@ public SeriesExtractedInfo extract(String pageUrl, RawParsedDataDto data) {
522521
SeriesCondition condition = SeriesCondition.valueOf(candidate);
523522
log.debug("Condition is {}", condition);
524523
return condition;
524+
case "ГАШ":
525525
case "ГАШ.":
526+
case "ГАШЕНЫЕ":
526527
log.debug("Condition is CANCELLED");
527528
return SeriesCondition.CANCELLED;
528529
}

0 commit comments

Comments
 (0)