Skip to content

Commit

Permalink
[review] close()
Browse files Browse the repository at this point in the history
  • Loading branch information
adutra committed Dec 18, 2024
1 parent fdd1941 commit 28db239
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,5 @@ default AuthSession tableSession(
* <p>This method is called when the owning catalog is closed.
*/
@Override
default void close() {
// Do nothing
}
void close();
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,9 @@ public AuthSession mainSession(RESTClient sharedClient, Map<String, String> prop
String credentials = username + ":" + password;
return DefaultAuthSession.of(HTTPHeaders.of(OAuth2Util.basicAuthHeaders(credentials)));
}

@Override
public void close() {
// no resources to close
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,9 @@ public class NoopAuthManager implements AuthManager {
public AuthSession mainSession(RESTClient sharedClient, Map<String, String> properties) {
return AuthSession.EMPTY;
}

@Override
public void close() {
// no resources to close
}
}

0 comments on commit 28db239

Please sign in to comment.