diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 7e6643b..74373e4 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- java: [ '8' ]
+ java: [ '21' ]
steps:
- uses: actions/checkout@v2
- name: Set up JDK
@@ -28,14 +28,14 @@ jobs:
- name: Compile
run: ./mvnw --batch-mode clean compile
build:
- name: build with jdk 8
+ name: build with jdk 21
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
- java-version: 8
+ java-version: 21
- uses: actions/cache@v2
with:
path: ~/.m2/repository
diff --git a/pom.xml b/pom.xml
index 4bf1154..58064e5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,8 +21,8 @@
UTF-8
- 1.8
- 1.8
+ 21
+ 21
@@ -74,41 +74,35 @@
org.slf4j
slf4j-api
- 1.7.30
+ 2.0.12
- org.junit.vintage
- junit-vintage-engine
- 5.6.2
+ org.junit.jupiter
+ junit-jupiter-engine
+ 5.10.1
+ test
org.mockito
mockito-core
- 3.5.15
+ 5.10.0
test
org.hamcrest
- hamcrest-core
+ hamcrest
2.2
test
- org.apache.logging.log4j
- log4j-core
- 2.13.3
- test
-
-
-
- org.apache.logging.log4j
- log4j-slf4j-impl
- 2.13.3
+ org.slf4j
+ slf4j-simple
+ 2.0.12
test
@@ -118,7 +112,7 @@
org.apache.maven.plugins
maven-release-plugin
- 2.5.3
+ 3.0.1
v@{project.version}
diff --git a/src/main/java/org/synyx/beanfiller/BeanFiller.java b/src/main/java/org/synyx/beanfiller/BeanFiller.java
index e73d3a7..dafe560 100644
--- a/src/main/java/org/synyx/beanfiller/BeanFiller.java
+++ b/src/main/java/org/synyx/beanfiller/BeanFiller.java
@@ -114,7 +114,7 @@ public T fillBean(Class clazz) throws FillingException {
* @param clazz class for which the creator should be used
* @param creator creator that should be used for the given class
*/
- public void addCreator(Class clazz, Creator creator) {
+ public void addCreator(Class> clazz, Creator creator) {
if (clazz == null || creator == null) {
LOG.warn("Class or Creator is null, abort adding the Creator!");
@@ -137,7 +137,7 @@ public void addCreator(Class clazz, Creator creator) {
* @param attributeName attribute for which the creator should be used
* @param creator creator that should be used for the given attribute of the given class
*/
- public void addCreatorForClassAndAttribute(Class clazz, String attributeName, Creator creator) {
+ public void addCreatorForClassAndAttribute(Class> clazz, String attributeName, Creator creator) {
if (clazz == null || attributeName == null || creator == null) {
LOG.warn("Class, attributeName, or Creator is null, abort adding the creator!");
diff --git a/src/main/java/org/synyx/beanfiller/creator/ArrayCreator.java b/src/main/java/org/synyx/beanfiller/creator/ArrayCreator.java
index 7f88a49..37f7296 100644
--- a/src/main/java/org/synyx/beanfiller/creator/ArrayCreator.java
+++ b/src/main/java/org/synyx/beanfiller/creator/ArrayCreator.java
@@ -22,7 +22,7 @@ public interface ArrayCreator extends Creator {
*
* @throws FillingException if an error occurred.
*/
- Object createArray(List