Skip to content

Commit

Permalink
Removed deprecated for removal methods from ServiceManager
Browse files Browse the repository at this point in the history
  • Loading branch information
mrotteveel committed Dec 27, 2024
1 parent 7045381 commit ab81ab2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 70 deletions.
5 changes: 5 additions & 0 deletions src/docs/asciidoc/release_notes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,11 @@ use `DIALECT_3`
* `SQLStateConstants`
** `SQL_STATE_CONNECTION_CLOSED` (`08003`);
use `SQL_STATE_CONNECTION_FAILURE` (`08006`).
* `ServiceManager`
** `getHost`/`setHost`;
use `getServerName`/`setServerName`
** `getPort`/`setPort`;
use `getPortNumber`/`setPortNumber`
[#breaking-changes-internal-api]
=== Breaking changes internal API
Expand Down
28 changes: 0 additions & 28 deletions src/main/org/firebirdsql/management/FBServiceManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -183,34 +183,6 @@ public String getDatabase() {
return database;
}

@SuppressWarnings("removal")
@Override
@Deprecated(since = "5", forRemoval = true)
public String getHost() {
return getServerName();
}

@SuppressWarnings("removal")
@Override
@Deprecated(since = "5", forRemoval = true)
public void setHost(String host) {
setServerName(host);
}

@SuppressWarnings("removal")
@Override
@Deprecated(since = "5", forRemoval = true)
public int getPort() {
return getPortNumber();
}

@SuppressWarnings("removal")
@Override
@Deprecated(since = "5", forRemoval = true)
public void setPort(int port) {
setPortNumber(port);
}

@Override
public String getWireCrypt() {
return ServiceManager.super.getWireCrypt();
Expand Down
42 changes: 0 additions & 42 deletions src/main/org/firebirdsql/management/ServiceManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

import org.firebirdsql.gds.impl.GDSServerVersion;
import org.firebirdsql.gds.ng.WireCrypt;
import org.firebirdsql.jaybird.props.AttachmentProperties;
import org.firebirdsql.jaybird.props.ServiceConnectionProperties;

import java.io.OutputStream;
Expand Down Expand Up @@ -60,47 +59,6 @@ public interface ServiceManager extends ServiceConnectionProperties {
*/
String getDatabase();

/**
* Returns the host for the connection to the service manager.
*
* @return the host for the connection to the service manager.
* @deprecated Use {@link #getServerName()}; will be removed in Jaybird 6 or later
*/
@Deprecated(since = "5", forRemoval = true)
String getHost();

/**
* Sets the host for the connection to the service manager.
* <p>
* See {@link AttachmentProperties#setServerName(String)} for details.
* </p>
*
* @param host
* for the connection to the service manager.
* @deprecated Use {@link #setServerName(String)}; will be removed in Jaybird 6 or later
*/
@Deprecated(since = "5", forRemoval = true)
void setHost(String host);

/**
* Returns the port for the connection to the service manager.
*
* @return the port for the connection to the service manager.
* @deprecated Use {@link #getPortNumber()}; will be removed in Jaybird 6 or later
*/
@Deprecated(since = "5", forRemoval = true)
int getPort();

/**
* Sets the port for the connection to the service manager.
*
* @param port
* for the connection to the service manager.
* @deprecated Use {@link #setPortNumber(int)}; will be removed in Jaybird 6 or later
*/
@Deprecated(since = "5", forRemoval = true)
void setPort(int port);

/**
* Get the wire encryption level.
*
Expand Down

0 comments on commit ab81ab2

Please sign in to comment.