Github user keith-turner commented on a diff in the pull request:

    https://github.com/apache/accumulo/pull/77#discussion_r54451601
  
    --- Diff: 
shell/src/main/java/org/apache/accumulo/shell/commands/FateCommand.java ---
    @@ -53,6 +67,51 @@
     
       private static final String USER = "accumulo";
     
    +  // this class serializes references to interfaces with the concrete 
class name
    +  private static class InterfaceSerializer<T> implements JsonSerializer<T> 
{
    +    @Override
    +    public JsonElement serialize(T link, Type type, 
JsonSerializationContext context) {
    +      JsonElement je = context.serialize(link, link.getClass());
    +      JsonObject jo = new JsonObject();
    +      jo.add(link.getClass().getName(), je);
    +      return jo;
    +    }
    +  }
    +
    +  // the purpose of this class is to be serialized as JSon for display
    +  private static class ByteArrayContainer {
    +    @SuppressWarnings("unused")
    --- End diff --
    
    there is a comment for the class mentioning its used for Json 
serialization.... thats why the instance vars are not read


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to