Skip to content

Commit

Permalink
Merge pull request #9 from softvis-research/development
Browse files Browse the repository at this point in the history
remove method properties incomingCalls and outgoingCalls
  • Loading branch information
rmllr authored Sep 1, 2020
2 parents 3cf9d8b + fe03454 commit f15c887
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit f15c887

Please sign in to comment.