Skip to content

Commit 737126d

Browse files
committed
Remove duplicated code
1 parent 29c9ecd commit 737126d

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

src/main/java/org/mybatis/dynamic/sql/util/InsertMappingVisitor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public final <R> T visit(ValueMapping<R> mapping) {
2222
}
2323

2424
@Override
25-
public <R> T visit(ValueWhenPresentMapping<R> mapping) {
25+
public final <R> T visit(ValueWhenPresentMapping<R> mapping) {
2626
throw new UnsupportedOperationException();
2727
}
2828

src/main/java/org/mybatis/dynamic/sql/util/MultiRowInsertMappingVisitor.java

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,7 @@
1515
*/
1616
package org.mybatis.dynamic.sql.util;
1717

18-
public abstract class MultiRowInsertMappingVisitor<T> implements ColumnMappingVisitor<T> {
19-
@Override
20-
public final <R> T visit(ValueMapping<R> mapping) {
21-
throw new UnsupportedOperationException();
22-
}
23-
24-
@Override
25-
public final T visit(SelectMapping mapping) {
26-
throw new UnsupportedOperationException();
27-
}
28-
29-
@Override
30-
public final T visit(ColumnToColumnMapping columnMapping) {
31-
throw new UnsupportedOperationException();
32-
}
33-
34-
@Override
35-
public final <R> T visit(ValueWhenPresentMapping<R> mapping) {
36-
throw new UnsupportedOperationException();
37-
}
38-
18+
public abstract class MultiRowInsertMappingVisitor<T> extends InsertMappingVisitor<T> {
3919
@Override
4020
public final T visit(PropertyWhenPresentMapping mapping) {
4121
throw new UnsupportedOperationException();

0 commit comments

Comments
 (0)