Skip to content

Commit

Permalink
Javadoc nit
Browse files Browse the repository at this point in the history
  • Loading branch information
emichael committed Nov 8, 2023
1 parent c2ad906 commit 84608c8
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions framework/tst/dslabs/framework/testing/visualization/JTrees.java
Original file line number Diff line number Diff line change
Expand Up @@ -267,13 +267,14 @@ void clearDiffObject() {
* MessageEnvelope, or Timer. Tree nodes expand as their children are
* queried; this allows for circular references in object graphs.
*
* Sub-classes should implement a {@code static boolean canHandle(Object)}
* method and should be listed in {@link #NODE_TYPES_IN_PRIORITY_ORDER}.
* They should also implement a constructor with arguments Object, Object.
* <p>Sub-classes should implement a
* {@code static boolean canHandle(Object)} method and should be listed in
* {@link #NODE_TYPES_IN_PRIORITY_ORDER}. They should also implement a
* constructor with arguments Object, Object.
*
* All state necessary for DSLabsTreeNodes should be encoded in the key and
* value; sub-classes should not have any extra fields. If nodes expand and
* create children, children should only be added through the addChild
* <p>All state necessary for DSLabsTreeNodes should be encoded in the key
* and value; sub-classes should not have any extra fields. If nodes expand
* and create children, children should only be added through the addChild
* method below.
*/
private static abstract class ObjectTreeNode
Expand All @@ -300,7 +301,8 @@ static protected ObjectTreeNode createNode(Class<?> clz, Object value,
if ((Boolean) c.getDeclaredMethod("canHandle", Class.class)
.invoke(null, clz)) {
return (ObjectTreeNode) c.getDeclaredConstructor(
Object.class, ObjectJTree.class)
Object.class,
ObjectJTree.class)
.newInstance(value, tree);
}
}
Expand Down

0 comments on commit 84608c8

Please sign in to comment.