Skip to content

Commit

Permalink
Close-suppressing Connection proxy exposes target isClosed() state
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoeller committed Apr 3, 2020
1 parent 45a270b commit 4a5bac9
Showing 1 changed file with 2 additions and 2 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2018 the original author or authors.
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -322,7 +322,7 @@ else if (method.getName().equals("close")) {
return null;
}
else if (method.getName().equals("isClosed")) {
return false;
return this.target.isClosed();
}
else if (method.getName().equals("getTargetConnection")) {
// Handle getTargetConnection method: return underlying Connection.
Expand Down

0 comments on commit 4a5bac9

Please sign in to comment.