Skip to content

Commit d6432b4

Browse files
committed
Polishing.
Revise test dependencies. See #1154
1 parent 364cd81 commit d6432b4

File tree

4 files changed

+29
-33
lines changed

4 files changed

+29
-33
lines changed

pom.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,19 @@
206206
</plugin>
207207
</plugins>
208208

209+
<pluginManagement>
210+
<plugins>
211+
<plugin>
212+
<groupId>org.apache.maven.plugins</groupId>
213+
<artifactId>maven-resources-plugin</artifactId>
214+
<configuration>
215+
<propertiesEncoding>${project.build.sourceEncoding}
216+
</propertiesEncoding>
217+
</configuration>
218+
</plugin>
219+
</plugins>
220+
</pluginManagement>
221+
209222
<resources>
210223
<resource>
211224
<directory>src/main/resources</directory>

spring-data-cassandra/pom.xml

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,13 @@
118118
<scope>test</scope>
119119
</dependency>
120120

121+
<dependency>
122+
<groupId>net.javacrumbs.json-unit</groupId>
123+
<artifactId>json-unit-assertj</artifactId>
124+
<version>4.1.0</version>
125+
<scope>test</scope>
126+
</dependency>
127+
121128
<!-- Reactor -->
122129
<dependency>
123130
<groupId>io.projectreactor</groupId>
@@ -138,13 +145,6 @@
138145
<optional>true</optional>
139146
</dependency>
140147

141-
<dependency>
142-
<groupId>com.google.code.findbugs</groupId>
143-
<artifactId>jsr305</artifactId>
144-
<version>3.0.2</version>
145-
<optional>true</optional>
146-
</dependency>
147-
148148
<!-- CDI -->
149149

150150
<dependency>
@@ -168,25 +168,6 @@
168168
<scope>test</scope>
169169
</dependency>
170170

171-
<dependency>
172-
<groupId>com.fasterxml.jackson.core</groupId>
173-
<artifactId>jackson-core</artifactId>
174-
<scope>test</scope>
175-
</dependency>
176-
177-
<dependency>
178-
<groupId>com.fasterxml.jackson.core</groupId>
179-
<artifactId>jackson-databind</artifactId>
180-
<scope>test</scope>
181-
</dependency>
182-
183-
<dependency>
184-
<groupId>net.javacrumbs.json-unit</groupId>
185-
<artifactId>json-unit-assertj</artifactId>
186-
<version>4.1.0</version>
187-
<scope>test</scope>
188-
</dependency>
189-
190171
<dependency>
191172
<groupId>edu.umd.cs.mtc</groupId>
192173
<artifactId>multithreadedtc</artifactId>

spring-data-cassandra/src/main/java/org/springframework/data/cassandra/core/mapping/Embedded.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import java.lang.annotation.RetentionPolicy;
2222
import java.lang.annotation.Target;
2323

24-
import javax.annotation.meta.When;
24+
import org.jspecify.annotations.NonNull;
2525

2626
import org.springframework.core.annotation.AliasFor;
2727

@@ -72,7 +72,8 @@ enum OnEmpty {
7272
* as alternative to the more verbose
7373
*
7474
* <pre class="code">
75-
* &#64;Embedded(onEmpty = USE_NULL) &#64;javax.annotation.Nonnull(when = When.MAYBE) private Address address;
75+
* &#64;Embedded(onEmpty = USE_NULL)
76+
* &#64;Nullable private Address address;
7677
* </pre>
7778
*
7879
* @author Christoph Strobl
@@ -82,7 +83,7 @@ enum OnEmpty {
8283
@Documented
8384
@Retention(RetentionPolicy.RUNTIME)
8485
@Target({ ElementType.FIELD, ElementType.METHOD })
85-
@javax.annotation.Nonnull(when = When.MAYBE)
86+
@org.jspecify.annotations.Nullable
8687
@interface Nullable {
8788

8889
/**
@@ -118,7 +119,7 @@ enum OnEmpty {
118119
@Documented
119120
@Retention(RetentionPolicy.RUNTIME)
120121
@Target({ ElementType.FIELD, ElementType.METHOD })
121-
@javax.annotation.Nonnull(when = When.NEVER)
122+
@NonNull
122123
@interface Empty {
123124

124125
/**

spring-data-cassandra/src/test/java/org/springframework/data/cassandra/core/convert/MappingCassandraConverterUnitTests.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
import static org.springframework.data.cassandra.core.mapping.BasicMapId.*;
2020
import static org.springframework.data.cassandra.test.util.RowMockUtil.*;
2121

22+
import net.minidev.json.JSONObject;
23+
import net.minidev.json.parser.JSONParser;
24+
import net.minidev.json.parser.ParseException;
25+
2226
import java.io.Serializable;
2327
import java.math.BigDecimal;
2428
import java.math.BigInteger;
@@ -33,9 +37,6 @@
3337
import java.util.*;
3438

3539
import org.assertj.core.data.Percentage;
36-
import org.json.simple.JSONObject;
37-
import org.json.simple.parser.JSONParser;
38-
import org.json.simple.parser.ParseException;
3940
import org.jspecify.annotations.Nullable;
4041
import org.junit.jupiter.api.BeforeEach;
4142
import org.junit.jupiter.api.Test;

0 commit comments

Comments
 (0)