Skip to content
Snippets Groups Projects
Commit 8654ee50 authored by J. M. Bailey's avatar J. M. Bailey
Browse files

Method name typo, add toString method.

parent ab78e271
No related branches found
No related tags found
No related merge requests found
......@@ -47,13 +47,13 @@ public class Domain
Class c = enumInst.getClass();
try {
//@formatter:off
marshalBuff = c.getDeclaredMethod("marshal", new Class[]{ByteBuffer.class});
marshalDos = c.getDeclaredMethod("marshal", new Class[]{DataOutputStream.class});
marshalBuff = c.getDeclaredMethod("marshal", new Class[]{ByteBuffer.class});
marshalDos = c.getDeclaredMethod("marshal", new Class[]{DataOutputStream.class});
unmarshalBuff = c.getDeclaredMethod("unmarshalEnum", new Class[]{ByteBuffer.class});
unmarshalDis = c.getDeclaredMethod("unmarshalEnum", new Class[]{DataInputStream.class});
mSize = c.getDeclaredMethod("getMarshalSize", (Class[]) null);
getValue = c.getMethod("getValue", (Class[]) null);
getDescription = c.getMethod("getDescription", (Class[]) null);
mSize = c.getDeclaredMethod("getMarshalledSize", (Class[]) null);
getValue = c.getDeclaredMethod("getValue", (Class[]) null);
getDescription =c.getDeclaredMethod("getDescription", (Class[]) null);
//@formatter:on
}
catch (NoSuchMethodException ex) {
......@@ -110,5 +110,10 @@ public class Domain
throw new RuntimeException("bad " + m.getName());
}
}
public String toString()
{
return getDescription();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment