Skip to content

Commit

Permalink
Deprecate duplicate method
Browse files Browse the repository at this point in the history
  • Loading branch information
bmalinowsky committed Jul 14, 2024
1 parent f14fbf6 commit 0230aaa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/io/calimero/baos/ip/ObjectServerConnection.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Calimero 2 - A library for KNX network access
Copyright (c) 2021, 2022 B. Malinowsky
Copyright (c) 2021, 2024 B. Malinowsky
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -158,7 +158,7 @@ public void send(final BaosService svc, final BlockingMode mode) throws KNXConne
}

@Override
public String getName() {
public String name() {
return "KNX IP ObjectServer " + super.name();
}

Expand Down
10 changes: 2 additions & 8 deletions src/io/calimero/knxnetip/KNXnetIPConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -200,15 +200,9 @@ void send(CEMI frame, BlockingMode mode)
int getState();

/**
* Returns the name of this connection, a brief textual representation to identify a
* KNXnet/IP connection.
* <p>
* The name has to be unique at least for connections with different IP addresses for
* the remote control endpoint.<br>
* The returned name is used by this connection for the name of its log service.
*
* @return name for this connection as string
* @deprecated Use {@link Connection#name()}.
*/
@Deprecated(forRemoval = true)
default String getName() { return name(); }

/**
Expand Down

0 comments on commit 0230aaa

Please sign in to comment.