Skip to content

Commit ab81ab2

Browse files
committed
Removed deprecated for removal methods from ServiceManager
1 parent 7045381 commit ab81ab2

File tree

3 files changed

+5
-70
lines changed

3 files changed

+5
-70
lines changed

src/docs/asciidoc/release_notes.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,11 @@ use `DIALECT_3`
492492
* `SQLStateConstants`
493493
** `SQL_STATE_CONNECTION_CLOSED` (`08003`);
494494
use `SQL_STATE_CONNECTION_FAILURE` (`08006`).
495+
* `ServiceManager`
496+
** `getHost`/`setHost`;
497+
use `getServerName`/`setServerName`
498+
** `getPort`/`setPort`;
499+
use `getPortNumber`/`setPortNumber`
495500
496501
[#breaking-changes-internal-api]
497502
=== Breaking changes internal API

src/main/org/firebirdsql/management/FBServiceManager.java

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -183,34 +183,6 @@ public String getDatabase() {
183183
return database;
184184
}
185185

186-
@SuppressWarnings("removal")
187-
@Override
188-
@Deprecated(since = "5", forRemoval = true)
189-
public String getHost() {
190-
return getServerName();
191-
}
192-
193-
@SuppressWarnings("removal")
194-
@Override
195-
@Deprecated(since = "5", forRemoval = true)
196-
public void setHost(String host) {
197-
setServerName(host);
198-
}
199-
200-
@SuppressWarnings("removal")
201-
@Override
202-
@Deprecated(since = "5", forRemoval = true)
203-
public int getPort() {
204-
return getPortNumber();
205-
}
206-
207-
@SuppressWarnings("removal")
208-
@Override
209-
@Deprecated(since = "5", forRemoval = true)
210-
public void setPort(int port) {
211-
setPortNumber(port);
212-
}
213-
214186
@Override
215187
public String getWireCrypt() {
216188
return ServiceManager.super.getWireCrypt();

src/main/org/firebirdsql/management/ServiceManager.java

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
import org.firebirdsql.gds.impl.GDSServerVersion;
2828
import org.firebirdsql.gds.ng.WireCrypt;
29-
import org.firebirdsql.jaybird.props.AttachmentProperties;
3029
import org.firebirdsql.jaybird.props.ServiceConnectionProperties;
3130

3231
import java.io.OutputStream;
@@ -60,47 +59,6 @@ public interface ServiceManager extends ServiceConnectionProperties {
6059
*/
6160
String getDatabase();
6261

63-
/**
64-
* Returns the host for the connection to the service manager.
65-
*
66-
* @return the host for the connection to the service manager.
67-
* @deprecated Use {@link #getServerName()}; will be removed in Jaybird 6 or later
68-
*/
69-
@Deprecated(since = "5", forRemoval = true)
70-
String getHost();
71-
72-
/**
73-
* Sets the host for the connection to the service manager.
74-
* <p>
75-
* See {@link AttachmentProperties#setServerName(String)} for details.
76-
* </p>
77-
*
78-
* @param host
79-
* for the connection to the service manager.
80-
* @deprecated Use {@link #setServerName(String)}; will be removed in Jaybird 6 or later
81-
*/
82-
@Deprecated(since = "5", forRemoval = true)
83-
void setHost(String host);
84-
85-
/**
86-
* Returns the port for the connection to the service manager.
87-
*
88-
* @return the port for the connection to the service manager.
89-
* @deprecated Use {@link #getPortNumber()}; will be removed in Jaybird 6 or later
90-
*/
91-
@Deprecated(since = "5", forRemoval = true)
92-
int getPort();
93-
94-
/**
95-
* Sets the port for the connection to the service manager.
96-
*
97-
* @param port
98-
* for the connection to the service manager.
99-
* @deprecated Use {@link #setPortNumber(int)}; will be removed in Jaybird 6 or later
100-
*/
101-
@Deprecated(since = "5", forRemoval = true)
102-
void setPort(int port);
103-
10462
/**
10563
* Get the wire encryption level.
10664
*

0 commit comments

Comments
 (0)