Disable this for now until the instrumented methods are working properly.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4699 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2007-05-07 20:47:53 +00:00
parent ef384f2a95
commit dcffc5f54d
+18 -18
View File
@@ -57,24 +57,24 @@ public abstract class FieldMarshaller
createMarshallers(); createMarshallers();
} }
// first look to see if this field has custom reader/writer methods // // first look to see if this field has custom reader/writer methods
Method reader = null, writer = null; // Method reader = null, writer = null;
try { // try {
reader = field.getDeclaringClass().getMethod( // reader = field.getDeclaringClass().getMethod(
getReaderMethodName(field.getName()), READER_ARGS); // getReaderMethodName(field.getName()), READER_ARGS);
writer = field.getDeclaringClass().getMethod( // writer = field.getDeclaringClass().getMethod(
getWriterMethodName(field.getName()), WRITER_ARGS); // getWriterMethodName(field.getName()), WRITER_ARGS);
return new MethodFieldMarshaller(reader, writer); // return new MethodFieldMarshaller(reader, writer);
} catch (NoSuchMethodException nsme) { // } catch (NoSuchMethodException nsme) {
// no problem // // no problem
} // }
if ((reader != null || writer != null) && (reader == null || writer == null)) { // if ((reader != null || writer != null) && (reader == null || writer == null)) {
log.warning("Class contains one but not both custom field reader and writer " + // log.warning("Class contains one but not both custom field reader and writer " +
"[class=" + field.getDeclaringClass().getName() + // "[class=" + field.getDeclaringClass().getName() +
", field=" + field.getName() + ", reader=" + reader + // ", field=" + field.getName() + ", reader=" + reader +
", writer=" + writer + "]."); // ", writer=" + writer + "].");
// fall through to using reflection on the fields... // // fall through to using reflection on the fields...
} // }
Class ftype = field.getType(); Class ftype = field.getType();
if (ftype.isInterface()) { if (ftype.isInterface()) {