Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
address error message nits
  • Loading branch information
wu-hui committed Jun 4, 2019
commit 0e84b0f7e9a9d9469c7c49a7193a81524f659257
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ private void populateDocumentIdProperties(
String message =
"'"
+ docIdPropertyName
+ "' is found from document "
+ "' was found from document "
+ context.documentRef.getPath()
+ ", cannot apply @DocumentId on this property for class "
+ clazz.getName();
Expand Down Expand Up @@ -959,7 +959,7 @@ private void applySetterAnnotations(Method method) {

if (method.isAnnotationPresent(DocumentId.class)) {
Class<?> paramType = method.getParameterTypes()[0];
ensureValidDocumentIdType("Method", "sets", paramType);
ensureValidDocumentIdType("Method", "accepts", paramType);
documentIdPropertyNames.add(propertyName(method));
}
}
Expand Down