Fix checkstyle issue caused by finally block being misplaced

This commit is contained in:
Vlad Mihalcea 2016-05-19 17:19:22 +03:00
parent d658295025
commit e2c5b34093

View File

@ -95,11 +95,13 @@ public double getExecutionAvgTimeAsDouble() {
writeLock.lock();
try {
double avgExecutionTime = 0;
if (executionCount.get() > 0) {
avgExecutionTime = totalExecutionTime.get() / (double) executionCount.get();
if ( executionCount.get() > 0 ) {
avgExecutionTime = totalExecutionTime.get() / (double) executionCount
.get();
}
return avgExecutionTime;
} finally {
}
finally {
writeLock.unlock();
}
}