Skip to content
Permalink
Browse files
Format tweak.
  • Loading branch information
Gary Gregory committed Apr 21, 2022
1 parent af3fc5c commit c8ce1f90e7f1c3291c655731a7888cc9c84e6948
Showing 1 changed file with 2 additions and 1 deletion.
@@ -185,10 +185,11 @@ public SimpleFactory(final boolean valid) {

@Override
public void activateObject(final K key, final PooledObject<String> obj) throws Exception {
if (exceptionOnActivate && !(validateCounter++%2 == 0 ? evenValid : oddValid)) {
if (exceptionOnActivate && !(validateCounter++ % 2 == 0 ? evenValid : oddValid)) {
throw new Exception();
}
}

@Override
public void destroyObject(final K key, final PooledObject<String> obj) throws Exception {
doWait(destroyLatency);

0 comments on commit c8ce1f9

Please sign in to comment.