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:
Ray Greenwell
2011-03-08 22:36:39 +00:00
parent 5a3f7bbdc7
commit fb39890cbd
@@ -119,7 +119,9 @@ public abstract class FieldMarshaller
if (fm == null) {
Class<?> collClass = Streamer.getCollectionClass(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(),
"type", ftype, "shouldBe", collClass);
fm = _marshallers.get(collClass);