You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apex.apache.org by siyuanh <gi...@git.apache.org> on 2016/06/01 18:59:25 UTC

[GitHub] incubator-apex-core pull request #338: APEXCORE-463 : fixed condition to all...

Github user siyuanh commented on a diff in the pull request:

    https://github.com/apache/incubator-apex-core/pull/338#discussion_r65421945
  
    --- Diff: engine/src/main/java/com/datatorrent/stram/webapp/TypeGraph.java ---
    @@ -355,7 +356,8 @@ public int size()
         }
         Set<String> result = new TreeSet<>();
         for (TypeGraphVertex node : tgv.allInstantiableDescendants) {
    -      if ((isAncestor(InputOperator.class.getName(), node.typeName) || !getAllInputPorts(node).isEmpty())) {
    +      if ((isAncestor(InputOperator.class.getName(), node.typeName) || isAncestor(Module.class.getName(), node.typeName)
    --- End diff --
    
     Method should do what the name suggest . Should either change the name of the method or have this in a separate method. There are same problem in TypeGraph and OperatorDiscover, please fix them as well. Otherwise, it would be confusing and error-prone in the future.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---