Skip to content

Commit 57d10a6

Browse files
committed
[ci] Add missing overrides
1 parent 8529238 commit 57d10a6

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
lines changed

src/test/java/org/apache/ibatis/submitted/default_method/Mapper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2009-2022 the original author or authors.
2+
* Copyright 2009-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -31,6 +31,7 @@ default User defaultGetUser(Object... args) {
3131
}
3232

3333
interface SubMapper extends Mapper {
34+
@Override
3435
default User defaultGetUser(Object... args) {
3536
return getUserByIdAndName((String) args[0], (Integer) args[1]);
3637
}

src/test/java/org/apache/ibatis/submitted/enum_interface_type_handler/Color.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2009-2022 the original author or authors.
2+
* Copyright 2009-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -17,16 +17,19 @@
1717

1818
public enum Color implements HasValue {
1919
WHITE {
20+
@Override
2021
public int getValue() {
2122
return 1;
2223
}
2324
},
2425
RED {
26+
@Override
2527
public int getValue() {
2628
return 2;
2729
}
2830
},
2931
BLUE {
32+
@Override
3033
public int getValue() {
3134
return 3;
3235
}

src/test/java/org/apache/ibatis/submitted/nestedresulthandler/Item.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public class Item {
1919
private Integer id;
2020
private String name;
2121

22+
@Override
2223
public String toString() {
2324
return new StringBuilder().append("Item(").append(id).append(", ").append(name).append(" )").toString();
2425
}

src/test/java/org/apache/ibatis/submitted/nestedresulthandler/Person.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public class Person {
2424
private String name;
2525
private final List<Item> items = new ArrayList<>();
2626

27+
@Override
2728
public String toString() {
2829
return new StringBuilder().append("Person(").append(id).append(", ").append(name).append(", ").append(items)
2930
.append(" )").toString();

src/test/java/org/apache/ibatis/submitted/nestedresulthandler/PersonItemPair.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2009-2022 the original author or authors.
2+
* Copyright 2009-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -22,6 +22,7 @@ public class PersonItemPair {
2222
private Person person;
2323
private Item item;
2424

25+
@Override
2526
public String toString() {
2627
return new StringBuilder().append("PersonItemPair(").append(person).append(", ").append(item).append(" )")
2728
.toString();

0 commit comments

Comments
 (0)