When counting number of components, we traverse into all Process Groups, but then call findAllRemoteProcessGroups, which is a recursive call, instead of calling getRemoteProcessGroups(). This results in counting the Process Groups many times. So fixed that.
This closes
@@ -443,7 +443,7 @@ public final class StandardProcessGroup implements ProcessGroup {
syncFailure += childCounts.getSyncFailureCount();
}
- for (final RemoteProcessGroup remoteGroup : findAllRemoteProcessGroups()) {
+ for (final RemoteProcessGroup remoteGroup : getRemoteProcessGroups()) {
// Count only input ports that have incoming connections
for (final Port port : remoteGroup.getInputPorts()) {
if (port.hasIncomingConnection()) {
