From 1b49ac3d751cc3a51c1091aa353899cbcbf4ee86 Mon Sep 17 00:00:00 2001 From: Mark Rotteveel Date: Sat, 8 Jul 2023 14:23:59 +0200 Subject: [PATCH] Reduce visibility of AbstractFbAttachment.getServerVersionInformation to match returned type --- src/docs/asciidoc/release_notes.adoc | 3 +++ src/main/org/firebirdsql/gds/ng/AbstractFbAttachment.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/docs/asciidoc/release_notes.adoc b/src/docs/asciidoc/release_notes.adoc index 49b358750..c68b31702 100644 --- a/src/docs/asciidoc/release_notes.adoc +++ b/src/docs/asciidoc/release_notes.adoc @@ -1123,6 +1123,9 @@ This means there may be undocumented changes to internal API. If you are confronted with such a change, let us know on https://groups.google.com/g/firebird-java[firebird-java], so we can take this into account when documenting future changes. ==== +* `AbstractFbAttachment` +** `getServerVersionInformation()` was changed from `protected` to package-private. +Given the returned type was already package-private, it wasn't really useful for subclasses outside the package anyway. * `FbWireDatabase` ** `enqueueDeferredAction(DeferredAction)` now throws `SQLException` to be able to handle exceptions for sync actions if there are a lot of deferred packets * `FbWireOperations` diff --git a/src/main/org/firebirdsql/gds/ng/AbstractFbAttachment.java b/src/main/org/firebirdsql/gds/ng/AbstractFbAttachment.java index df4deb7fc..18e33f08e 100644 --- a/src/main/org/firebirdsql/gds/ng/AbstractFbAttachment.java +++ b/src/main/org/firebirdsql/gds/ng/AbstractFbAttachment.java @@ -101,7 +101,7 @@ protected final void setServerVersion(String... versionStrings) { } - protected ServerVersionInformation getServerVersionInformation() { + final ServerVersionInformation getServerVersionInformation() { return serverVersionInformation; }