mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 20:25:50 +00:00
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
|
||||
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