Skip to content

Commit fee0d54

Browse files
committed
Use diamond operator
1 parent facbd50 commit fee0d54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/org/apache/ibatis/binding/BindingTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ void shouldSelectBlogWithPostsUsingSubSelect() {
106106
void shouldFindPostsInList() {
107107
try (SqlSession session = sqlSessionFactory.openSession()) {
108108
BoundAuthorMapper mapper = session.getMapper(BoundAuthorMapper.class);
109-
List<Post> posts = mapper.findPostsInList(new ArrayList<Integer>() {
109+
List<Post> posts = mapper.findPostsInList(new ArrayList<>() {
110110
private static final long serialVersionUID = 1L;
111111
{
112112
add(1);
@@ -430,7 +430,7 @@ void shouldExecuteBoundSelectOneBlogStatementWithConstructorUsingXMLConfig() {
430430
void shouldSelectOneBlogAsMap() {
431431
try (SqlSession session = sqlSessionFactory.openSession()) {
432432
BoundBlogMapper mapper = session.getMapper(BoundBlogMapper.class);
433-
Map<String, Object> blog = mapper.selectBlogAsMap(new HashMap<String, Object>() {
433+
Map<String, Object> blog = mapper.selectBlogAsMap(new HashMap<>() {
434434
private static final long serialVersionUID = 1L;
435435
{
436436
put("id", 1);

0 commit comments

Comments
 (0)