Skip to content
Permalink
Browse files
Inline single use local variable.
  • Loading branch information
Gary Gregory committed Apr 21, 2022
1 parent 23afbe7 commit af3fc5c529af29dc9f572003d6f9cb07dd90effd
Showing 1 changed file with 1 addition and 2 deletions.
@@ -332,8 +332,7 @@ public void addObject(final K key) throws E {
assertOpen();
register(key);
try {
final PooledObject<T> p = create(key);
addIdleObject(key, p);
addIdleObject(key, create(key));
} finally {
deregister(key);
}

0 comments on commit af3fc5c

Please sign in to comment.