Skip to content

Commit e1ea69d

Browse files
committed
Use record
1 parent baf165d commit e1ea69d

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/main/java/org/mybatis/dynamic/sql/util/spring/BatchInsertUtility.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,5 @@ public static <T> SqlParameterSource[] createBatch(List<T> rows) {
3939
return SqlParameterSourceUtils.createBatch(tt);
4040
}
4141

42-
public static class RowHolder<T> {
43-
private final T row;
44-
45-
public RowHolder(T row) {
46-
this.row = row;
47-
}
48-
49-
public T getRow() {
50-
return row;
51-
}
52-
}
42+
public record RowHolder<T> (T row) {}
5343
}

0 commit comments

Comments
 (0)