public static String convertForStoring(ClassAndVariables cam) {
    StringBuilder sb = new StringBuilder(150);
    sb.append(cam.dclass.fullyQualifiedName());
    sb.append(',').append(cam.hasSerialVersionUID);
    if (cam.hasSerialVersionUID) {
      sb.append(',').append(cam.serialVersionUID);
    }

    List<CompiledField> fields = new ArrayList<>(cam.variables.values());
    Collections.sort(fields);
    for (CompiledField field : fields) {
      sb.append(',').append(field.name()).append(':').append(field.descriptor());
    }
    return sb.toString();
  }
A class used to store the names of dataserializable classes and the sizes of their
toData/fromData methods.
geode-junit/src/main/java/org/apache/geode/codeAnalysis/ClassAndVariableDetails.java