From fe034543d6bdb19198ab058298e1d467173efbba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20M=C3=BCller?= Date: Tue, 1 Sep 2020 12:36:45 +0200 Subject: [PATCH] remove method properties incomingCalls and outgoingCalls --- .../contrib/plugin/kieker/api/model/MethodDescriptor.java | 8 -------- .../contrib/plugin/kieker/impl/scanner/KiekerHelper.java | 7 +------ 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/main/java/org/jqassistant/contrib/plugin/kieker/api/model/MethodDescriptor.java b/src/main/java/org/jqassistant/contrib/plugin/kieker/api/model/MethodDescriptor.java index abc1b98..f356dcf 100644 --- a/src/main/java/org/jqassistant/contrib/plugin/kieker/api/model/MethodDescriptor.java +++ b/src/main/java/org/jqassistant/contrib/plugin/kieker/api/model/MethodDescriptor.java @@ -33,12 +33,4 @@ public interface MethodDescriptor extends KiekerDescriptor, NamedDescriptor { void setDuration(long duration); long getDuration(); - - void setIncomingCalls(int incomingCalls); - - int getIncomingCalls(); - - void setOutgoingCalls(int outgoingCalls); - - int getOutgoingCalls(); } diff --git a/src/main/java/org/jqassistant/contrib/plugin/kieker/impl/scanner/KiekerHelper.java b/src/main/java/org/jqassistant/contrib/plugin/kieker/impl/scanner/KiekerHelper.java index ff9c401..456eee4 100644 --- a/src/main/java/org/jqassistant/contrib/plugin/kieker/impl/scanner/KiekerHelper.java +++ b/src/main/java/org/jqassistant/contrib/plugin/kieker/impl/scanner/KiekerHelper.java @@ -78,12 +78,7 @@ void createEvent(AbstractOperationEvent event) { CallOperationEvent callOperationEvent = (CallOperationEvent) event; MethodDescriptor caller = getMethodDescriptor(callOperationEvent.getCallerClassSignature(), callOperationEvent.getCallerOperationSignature()); MethodDescriptor callee = getMethodDescriptor(callOperationEvent.getCalleeClassSignature(), callOperationEvent.getCalleeOperationSignature()); - // update number of incoming and outgoing calls - if (callOperationEvent.getOrderIndex() == 1) { - caller.setIncomingCalls(caller.getIncomingCalls() + 1); - } - caller.setOutgoingCalls(caller.getOutgoingCalls() + 1); - callee.setIncomingCalls(callee.getIncomingCalls() + 1); + // add call addCall(caller, callee); }