Skip to content

Commit

Permalink
add deprecated annotation & javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasCAI-mlv committed Aug 1, 2024
1 parent eda8986 commit 5da3fe0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ public List<ConnectCluster> list(String namespace, @QueryValue(defaultValue = "*
* @param namespace The namespace
* @param connectCluster The name
* @return A Kafka Connect cluster
* @deprecated use list(String, String name) instead.
*/
@Get("/{connectCluster}")
@Deprecated(since = "1.12.0")
public Optional<ConnectCluster> get(String namespace, String connectCluster) {
return connectClusterService.findByNameWithOwnerPermission(getNamespace(namespace), connectCluster);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ void shouldListConnectClusterWithNameParameter() {
}

@Test
@SuppressWarnings("deprecation")
void shouldGetConnectClusterWhenEmpty() {
Namespace ns = Namespace.builder()
.metadata(Metadata.builder()
Expand All @@ -136,6 +137,7 @@ void shouldGetConnectClusterWhenEmpty() {
}

@Test
@SuppressWarnings("deprecation")
void shouldGetConnectCluster() {
Namespace ns = Namespace.builder()
.metadata(Metadata.builder()
Expand Down

0 comments on commit 5da3fe0

Please sign in to comment.