Skip to content

Commit 80395a4

Browse files
committed
Update trace message to include annotation name
1 parent 295c1ab commit 80395a4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

doma-core/src/main/java/org/seasar/doma/message/Message.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ public enum Message implements MessageResource {
957957
"If a method annotated with @MultiInsert targets immutable entities for insertion, the return type must be org.seasar.doma.jdbc.MultiResult."
958958
+ "The type argument of org.seasar.doma.jdbc.MultiResult must be the immutable entity class."),
959959
DOMA4462("The property \"{0}\" is not found in the entity class \"{1}\"."),
960-
DOMA4463("'{'\"execTimeMillis\": {0}, \"processor\": \"{1}\", \"element\": \"{2}\"'}'"),
960+
DOMA4463("'{'\"execTimeMillis\": {0}, \"annotation\": \"{1}\", \"element\": \"{2}\"'}'"),
961961
DOMA4464("Fields annotated with AssociationLinker must be static."),
962962
DOMA4465("Fields annotated with AssociationLinker must be java.util.function.BiFunction."),
963963
DOMA4466("The {0} type parameter of BiFunction must be an entity class."),

doma-processor/src/main/java/org/seasar/doma/internal/apt/processor/ElementProcessorSupport.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ private <E extends Element> M handleElement(
9595
ctx.getReporter()
9696
.debug(
9797
Message.DOMA4463,
98-
new Object[] {execTimeMillis, getClass().getName(), elementNameSupplier.get()});
98+
new Object[] {
99+
execTimeMillis, supportedAnnotationType.getName(), elementNameSupplier.get()
100+
});
99101
} else {
100102
result = handler.apply(element);
101103
}

0 commit comments

Comments
 (0)