Skip to content

Commit 12f525e

Browse files
committed
Polish SpringAvoidStaticImportCheck
Sort excludes alphabetically and remove a duplicate
1 parent b3329ba commit 12f525e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

spring-javaformat/spring-javaformat-checkstyle/src/main/java/io/spring/javaformat/checkstyle/check/SpringAvoidStaticImportCheck.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2023 the original author or authors.
2+
* Copyright 2017-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -46,11 +46,10 @@ public class SpringAvoidStaticImportCheck extends AvoidStaticImportCheck {
4646
excludes.add("org.junit.internal.matchers.ThrowableMessageMatcher.*");
4747
excludes.add("org.junit.jupiter.api.Assertions.*");
4848
excludes.add("org.junit.jupiter.api.Assumptions.*");
49-
excludes.add("org.junit.jupiter.api.Assertions.*");
49+
excludes.add("org.mockito.AdditionalMatchers.*");
5050
excludes.add("org.mockito.ArgumentMatchers.*");
5151
excludes.add("org.mockito.BDDMockito.*");
5252
excludes.add("org.mockito.Matchers.*");
53-
excludes.add("org.mockito.AdditionalMatchers.*");
5453
excludes.add("org.mockito.Mockito.*");
5554
excludes.add("org.springframework.boot.configurationprocessor.ConfigurationMetadataMatchers.*");
5655
excludes.add("org.springframework.boot.configurationprocessor.TestCompiler.*");

0 commit comments

Comments
 (0)