Skip to content

Commit c1e2495

Browse files
committed
Make @SuppressWarnings with multiple elements more readable.
No code changes. [ci skip]
1 parent fde518b commit c1e2495

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

src/main/java/ru/mystamps/web/config/ApplicationContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
TaskExecutorConfig.class,
3737
TogglzConfig.class
3838
})
39-
@SuppressWarnings({"checkstyle:hideutilityclassconstructor", "PMD.UseUtilityClass"})
39+
@SuppressWarnings({ "checkstyle:hideutilityclassconstructor", "PMD.UseUtilityClass" })
4040
public class ApplicationContext {
4141

4242
@Bean

src/main/java/ru/mystamps/web/controller/dto/AddSeriesForm.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
@Getter
5858
@Setter
5959
// TODO: combine price with currency to separate class
60-
@SuppressWarnings({"PMD.TooManyFields", "PMD.AvoidDuplicateLiterals"})
60+
@SuppressWarnings({ "PMD.TooManyFields", "PMD.AvoidDuplicateLiterals" })
6161
@NotNullIfFirstField.List({
6262
@NotNullIfFirstField(
6363
first = "month", second = "year", message = "{month.requires.year}",

src/main/java/ru/mystamps/web/dao/dto/SeriesInfoDto.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class SeriesInfoDto {
3030
private final Integer quantity;
3131
private final Boolean perforated;
3232

33-
@SuppressWarnings({"checkstyle:parameternumber", "PMD.ExcessiveParameterList"})
33+
@SuppressWarnings({ "checkstyle:parameternumber", "PMD.ExcessiveParameterList" })
3434
public SeriesInfoDto(
3535
Integer id,
3636
Integer categoryId, String categorySlug, String categoryName,

src/main/java/ru/mystamps/web/dao/impl/JdbcCountryDao.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
import ru.mystamps.web.dao.dto.LinkEntityDto;
4040

4141
@RequiredArgsConstructor
42-
@SuppressWarnings({"PMD.AvoidDuplicateLiterals", "PMD.TooManyMethods"})
42+
@SuppressWarnings({ "PMD.AvoidDuplicateLiterals", "PMD.TooManyMethods" })
4343
public class JdbcCountryDao implements CountryDao {
4444

4545
private final NamedParameterJdbcTemplate jdbcTemplate;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public void logAboutInvalidCsrfToken(HttpServletRequest request) {
125125
}
126126

127127
// protected for using in unit tests
128-
@SuppressWarnings({"PMD.UseObjectForClearerAPI", "checkstyle:parameternumber"})
128+
@SuppressWarnings({ "PMD.UseObjectForClearerAPI", "checkstyle:parameternumber" })
129129
protected void logEvent(
130130
String type,
131131
String page,

src/main/java/ru/mystamps/web/service/dto/SeriesDto.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class SeriesDto {
3030
private final CatalogInfoDto gibbons;
3131
private final List<Integer> imageIds;
3232

33-
@SuppressWarnings({"checkstyle:parameternumber", "PMD.ExcessiveParameterList"})
33+
@SuppressWarnings({ "checkstyle:parameternumber", "PMD.ExcessiveParameterList" })
3434
public SeriesDto(
3535
SeriesFullInfoDto info,
3636
List<String> michelNumbers,

src/main/java/ru/mystamps/web/support/beanvalidation/ImageFileValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public void initialize(ImageFile annotation) {
102102
}
103103

104104
// The following warnings will gone after splitting this validator (see #593)
105-
@SuppressWarnings({"PMD.ModifiedCyclomaticComplexity", "PMD.NPathComplexity"})
105+
@SuppressWarnings({ "PMD.ModifiedCyclomaticComplexity", "PMD.NPathComplexity" })
106106
@Override
107107
public boolean isValid(MultipartFile file, ConstraintValidatorContext ctx) {
108108

src/main/java/ru/mystamps/web/validation/ValidationRules.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ public final class ValidationRules {
4646
public static final String CATEGORY_NAME_EN_REGEXP = "[- a-zA-Z]+";
4747
public static final String CATEGORY_NAME_RU_REGEXP = "[- а-яёА-ЯЁ]+";
4848
public static final String CATEGORY_NAME_NO_HYPHEN_REGEXP = "[ \\p{L}]([- \\p{L}]+[ \\p{L}])*";
49-
@SuppressWarnings({"PMD.LongVariable", "checkstyle:linelength"})
49+
@SuppressWarnings({ "PMD.LongVariable", "checkstyle:linelength" })
5050
public static final String CATEGORY_NAME_NO_REPEATING_HYPHENS_REGEXP = "(?!.+[-]{2,}).+";
5151

5252
public static final int COUNTRY_NAME_MIN_LENGTH = 3;
5353
public static final int COUNTRY_NAME_MAX_LENGTH = Db.Country.NAME_LENGTH;
5454
public static final String COUNTRY_NAME_EN_REGEXP = "[- a-zA-Z]+";
5555
public static final String COUNTRY_NAME_RU_REGEXP = "[- а-яёА-ЯЁ]+";
5656
public static final String COUNTRY_NAME_NO_HYPHEN_REGEXP = "[ \\p{L}]([- \\p{L}]+[ \\p{L}])*";
57-
@SuppressWarnings({"PMD.LongVariable", "checkstyle:linelength"})
57+
@SuppressWarnings({ "PMD.LongVariable", "checkstyle:linelength" })
5858
public static final String COUNTRY_NAME_NO_REPEATING_HYPHENS_REGEXP = "(?!.+[-]{2,}).+";
5959

6060
public static final int MIN_STAMPS_IN_SERIES = 1;

0 commit comments

Comments
 (0)