mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-27 14:30:16 +00:00
Fix checkstyle issue caused by finally block being misplaced
This commit is contained in:
parent
d658295025
commit
e2c5b34093
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user