Sonar review: made code more readable

This commit is contained in:
michaelisvy 2015-01-16 09:25:36 +08:00
parent 1c9b401248
commit 3e4512781e

View file

@ -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;
} }