Refine and elaborate this warning message.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6528 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -119,7 +119,9 @@ public abstract class FieldMarshaller
|
|||||||
if (fm == null) {
|
if (fm == null) {
|
||||||
Class<?> collClass = Streamer.getCollectionClass(ftype);
|
Class<?> collClass = Streamer.getCollectionClass(ftype);
|
||||||
if (collClass != null && !collClass.equals(ftype)) {
|
if (collClass != null && !collClass.equals(ftype)) {
|
||||||
log.warning("Specific field types are discouraged for Collections and Maps.",
|
log.warning("Specific field types are discouraged " +
|
||||||
|
"for Iterables/Collections and Maps. The implementation type may not be " +
|
||||||
|
"recreated on the other side.",
|
||||||
"class", field.getDeclaringClass(), "field", field.getName(),
|
"class", field.getDeclaringClass(), "field", field.getName(),
|
||||||
"type", ftype, "shouldBe", collClass);
|
"type", ftype, "shouldBe", collClass);
|
||||||
fm = _marshallers.get(collClass);
|
fm = _marshallers.get(collClass);
|
||||||
|
|||||||
Reference in New Issue
Block a user