File tree Expand file tree Collapse file tree 5 files changed +10
-3
lines changed
src/test/java/org/apache/ibatis/submitted
enum_interface_type_handler Expand file tree Collapse file tree 5 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2009-2022 the original author or authors.
2
+ * Copyright 2009-2023 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -31,6 +31,7 @@ default User defaultGetUser(Object... args) {
31
31
}
32
32
33
33
interface SubMapper extends Mapper {
34
+ @ Override
34
35
default User defaultGetUser (Object ... args ) {
35
36
return getUserByIdAndName ((String ) args [0 ], (Integer ) args [1 ]);
36
37
}
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2009-2022 the original author or authors.
2
+ * Copyright 2009-2023 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
17
17
18
18
public enum Color implements HasValue {
19
19
WHITE {
20
+ @ Override
20
21
public int getValue () {
21
22
return 1 ;
22
23
}
23
24
},
24
25
RED {
26
+ @ Override
25
27
public int getValue () {
26
28
return 2 ;
27
29
}
28
30
},
29
31
BLUE {
32
+ @ Override
30
33
public int getValue () {
31
34
return 3 ;
32
35
}
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ public class Item {
19
19
private Integer id ;
20
20
private String name ;
21
21
22
+ @ Override
22
23
public String toString () {
23
24
return new StringBuilder ().append ("Item(" ).append (id ).append (", " ).append (name ).append (" )" ).toString ();
24
25
}
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ public class Person {
24
24
private String name ;
25
25
private final List <Item > items = new ArrayList <>();
26
26
27
+ @ Override
27
28
public String toString () {
28
29
return new StringBuilder ().append ("Person(" ).append (id ).append (", " ).append (name ).append (", " ).append (items )
29
30
.append (" )" ).toString ();
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2009-2022 the original author or authors.
2
+ * Copyright 2009-2023 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -22,6 +22,7 @@ public class PersonItemPair {
22
22
private Person person ;
23
23
private Item item ;
24
24
25
+ @ Override
25
26
public String toString () {
26
27
return new StringBuilder ().append ("PersonItemPair(" ).append (person ).append (", " ).append (item ).append (" )" )
27
28
.toString ();
You can’t perform that action at this time.
0 commit comments