forked from DevFW-CICD/spring-petclinic
Sonar review: made code more readable
This commit is contained in:
parent
1c9b401248
commit
3e4512781e
1 changed files with 4 additions and 1 deletions
|
@ -66,7 +66,10 @@ public class CallMonitoringAspect {
|
||||||
|
|
||||||
@ManagedAttribute
|
@ManagedAttribute
|
||||||
public long getCallTime() {
|
public long getCallTime() {
|
||||||
return (this.callCount > 0 ? this.accumulatedCallTime / this.callCount : 0);
|
if (this.callCount > 0)
|
||||||
|
return this.accumulatedCallTime / this.callCount;
|
||||||
|
else
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue