Skip to content
Snippets Groups Projects
Commit 3e451278 authored by michaelisvy's avatar michaelisvy
Browse files

Sonar review: made code more readable

parent 1c9b4012
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,10 @@ public class CallMonitoringAspect {
@ManagedAttribute
public long getCallTime() {
return (this.callCount > 0 ? this.accumulatedCallTime / this.callCount : 0);
if (this.callCount > 0)
return this.accumulatedCallTime / this.callCount;
else
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment