Skip to content

Commit

Permalink
Fix(inspect-code): Redundant throws
Browse files Browse the repository at this point in the history
  • Loading branch information
rkubis committed Nov 22, 2024
1 parent b339ce2 commit d929836
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public static void deployKeycloak(String namespace) throws InterruptedException,
LOGGER.info("Keycloak should be deployed.");
}

public static void deployOAuthKafkaKeycloak(String namespace) throws InterruptedException, IOException {
public static void deployOAuthKafkaKeycloak(String namespace) throws InterruptedException {
LOGGER.info("Deploying OAuth Kafka Keycloak...");
// ResourceManager manager = ResourceManager.getInstance();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public static boolean waitCatalogSourceReady(String namespace, String name) {
return waitCatalogSourceReady(namespace, name, TimeoutBudget.ofDuration(Duration.ofMinutes(5)));
}

public static OperatorGroup createOperatorGroup(String namespace) throws InterruptedException {
public static OperatorGroup createOperatorGroup(String namespace) {
String name = namespace + "-operator-group";

LOGGER.info("Creating operator group {} in namespace {} targeting namespace {}...", name, namespace, namespace);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void createOrReplace(CatalogSource resource) {
}

@Override
public void delete(CatalogSource resource) throws Exception {
public void delete(CatalogSource resource) {
Kubernetes.deleteCatalogSource(resource.getMetadata().getNamespace(), resource.getMetadata().getName());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void createOrReplace(Ingress resource) {
}

@Override
public void delete(Ingress resource) throws Exception {
public void delete(Ingress resource) {
getOperation()
.inNamespace(resource.getMetadata().getNamespace())
.withName(resource.getMetadata().getName())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void createOrReplace(KafkaConnect resource) {
}

@Override
public void delete(KafkaConnect resource) throws Exception {
public void delete(KafkaConnect resource) {
getOperation()
.inNamespace(resource.getMetadata().getNamespace())
.withName(resource.getMetadata().getName())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public void createOrReplace(Kafka resource) {
}

@Override
public void delete(Kafka resource) throws Exception {
public void delete(Kafka resource) {
getOperation()
.inNamespace(resource.getMetadata().getNamespace())
.withName(resource.getMetadata().getName())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void createOrReplace(KafkaTopic resource) {
}

@Override
public void delete(KafkaTopic resource) throws Exception {
public void delete(KafkaTopic resource) {
getOperation()
.inNamespace(resource.getMetadata().getNamespace())
.withName(resource.getMetadata().getName())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void createOrReplace(KafkaUser resource) {
}

@Override
public void delete(KafkaUser resource) throws Exception {
public void delete(KafkaUser resource) {
getOperation()
.inNamespace(resource.getMetadata().getNamespace())
.withName(resource.getMetadata().getName())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public void createOrReplace(OperatorGroup resource) {
}

@Override
public void delete(OperatorGroup resource) throws Exception {
public void delete(OperatorGroup resource) {
Kubernetes.deleteOperatorGroup(resource.getMetadata().getNamespace(), resource.getMetadata().getName());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public interface ResourceType<T extends HasMetadata> {

void createOrReplace(T resource);

void delete(T resource) throws Exception;
void delete(T resource);

/**
* Check if this resource is marked as ready or not.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void createOrReplace(Route resource) {
}

@Override
public void delete(Route resource) throws Exception {
public void delete(Route resource) {
Kubernetes.deleteRoute(resource.getMetadata().getNamespace(), resource.getMetadata().getName());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void createOrReplace(Secret resource) {
}

@Override
public void delete(Secret resource) throws Exception {
public void delete(Secret resource) {
Kubernetes.deleteSecret(resource.getMetadata().getNamespace(), resource.getMetadata().getName());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void createOrReplace(Subscription resource) {
}

@Override
public void delete(Subscription resource) throws Exception {
public void delete(Subscription resource) {
Kubernetes.deleteSubscription(resource.getMetadata().getNamespace(), resource.getMetadata().getName());
}

Expand Down

0 comments on commit d929836

Please sign in to comment.