Skip to content

Commit 3b3e7a8

Browse files
committed
Fix return type error descriptions in DAO methods
1 parent 7bad95b commit 3b3e7a8

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

src/test/testData/src/main/java/doma/example/dao/inspection/BatchReturnTypeDao.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ public interface BatchReturnTypeDao {
1111
int[] batchInsertReturnsIntArray(List<Packet> e);
1212

1313
@BatchUpdate
14-
String <error descr="The return type must be \"int[]\".">batchUpdateReturnsString</error>(List<Packet> e);
14+
String <error descr="The return type must be \"int[]\"">batchUpdateReturnsString</error>(List<Packet> e);
1515

1616
@BatchDelete
17-
int[] <error descr="If a method annotated with @BatchDelete targets immutable entities for insertion, the return type must be BatchResult<Pckt>.">batchDeleteReturnsIntWithImmutable</error>(List<Pckt> e);
17+
int[] <error descr="If a method annotated with @BatchDelete targets immutable entities for insertion, the return type must be BatchResult<Pckt>">batchDeleteReturnsIntWithImmutable</error>(List<Pckt> e);
1818

1919
@BatchDelete
2020
BatchResult<Pckt> batchDeleteReturnsBatchResultWithImmutable(List<Pckt> e);

src/test/testData/src/main/java/doma/example/dao/inspection/MultiInsertReturnTypeDao.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public interface MultiInsertReturnTypeDao {
1111
int multiInsertReturnsInt(List<Packet> e);
1212

1313
@MultiInsert
14-
String <error descr="If a method annotated with @MultiInsert targets immutable entities for insertion, the return type must be MultiResult<Pckt>.">multiInsertReturnsString</error>(List<Pckt> e);
14+
String <error descr="If a method annotated with @MultiInsert targets immutable entities for insertion, the return type must be MultiResult<Pckt>">multiInsertReturnsString</error>(List<Pckt> e);
1515

1616
@MultiInsert(returning = @Returning)
1717
List<Packet> multiInsertReturningList(List<Packet> e);
@@ -20,7 +20,7 @@ public interface MultiInsertReturnTypeDao {
2020
String <error descr="When \"returning = @Returning\" is specified, the return type must be List<Packet>">multiInsertReturningString</error>(List<Packet> e);
2121

2222
@MultiInsert
23-
int <error descr="If a method annotated with @MultiInsert targets immutable entities for insertion, the return type must be MultiResult<Pckt>.">multiInsertReturnsIntWithImmutable</error>(List<Pckt> e);
23+
int <error descr="If a method annotated with @MultiInsert targets immutable entities for insertion, the return type must be MultiResult<Pckt>">multiInsertReturnsIntWithImmutable</error>(List<Pckt> e);
2424

2525
@MultiInsert
2626
MultiResult<Pckt> multiInsertReturnsMultiResultWithImmutable(List<Pckt> e);

src/test/testData/src/main/java/doma/example/dao/inspection/ProcedureReturnTypeDao.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ public interface ProcedureReturnTypeDao {
77
@Procedure
88
void callProcedureReturnsVoid();
99
@Procedure
10-
int <error descr="The return type must be \"void\".">callProcedureReturnsInt</error>();
10+
int <error descr="The return type must be \"void\"">callProcedureReturnsInt</error>();
1111
}

src/test/testData/src/main/java/doma/example/dao/inspection/SqlProcessorReturnTypeDao.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ public interface SqlProcessorReturnTypeDao {
1414
<R> R processSqlReturnsR(BiFunction<Config, PreparedSql, R> handler);
1515

1616
@SqlProcessor
17-
String <error descr="The return type \"java.lang.String\" is not the same as the third type argument \"java.lang.Integer\" of BiFunction.">processSqlReturnsString</error>(BiFunction<Config, PreparedSql, Integer> handler);
17+
String <error descr="The return type \"java.lang.String\" is not the same as the third type argument \"java.lang.Integer\" of BiFunction">processSqlReturnsString</error>(BiFunction<Config, PreparedSql, Integer> handler);
1818

1919
@SqlProcessor
2020
void processSqlReturnsVoid(BiFunction<Config, PreparedSql, Void> handler);
2121

2222
@SqlProcessor
23-
String <error descr="The return type must be \"void\".">processSqlReturnsStringWithVoidHandler</error>(BiFunction<Config, PreparedSql, Void> handler);
23+
String <error descr="The return type must be \"void\"">processSqlReturnsStringWithVoidHandler</error>(BiFunction<Config, PreparedSql, Void> handler);
2424
}

src/test/testData/src/main/java/doma/example/dao/inspection/UpdateReturnTypeDao.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public interface UpdateReturnTypeDao {
1111
int insertReturnsInt(Packet e);
1212

1313
@Update
14-
String <error descr="The return type must be \"int\".">updateReturnsString</error>(Packet e);
14+
String <error descr="The return type must be \"int\"">updateReturnsString</error>(Packet e);
1515

1616
@Delete(returning = @Returning)
1717
Packet deleteReturningEntity(Packet e);
@@ -23,6 +23,6 @@ public interface UpdateReturnTypeDao {
2323
Result<Pckt> updateReturnsResultWithImmutable(Pckt e);
2424

2525
@Update
26-
int <error descr="If a method annotated with @Update targets immutable entities for insertion, the return type must be Result<Pckt>.">updateReturnsIntWithImmutable</error>(Pckt e);
26+
int <error descr="If a method annotated with @Update targets immutable entities for insertion, the return type must be Result<Pckt>">updateReturnsIntWithImmutable</error>(Pckt e);
2727
}
2828

0 commit comments

Comments
 (0)