Code cleanup

This commit is contained in:
Ömer Çelik
2024-08-16 13:05:38 +03:00
committed by Oleg Zhurakousky
parent 1de0e1c690
commit 7fefaa38c0
5 changed files with 30 additions and 20 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2015-2019 the original author or authors.
* Copyright 2015-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -22,7 +22,6 @@ package org.springframework.cloud.stream.binder.rabbit.admin;
* @author Gary Russell
* @since 1.2
*/
@SuppressWarnings("serial")
public class RabbitAdminException extends RuntimeException {
public RabbitAdminException(String message, Throwable cause) {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2022-2022 the original author or authors.
* Copyright 2022-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -24,8 +24,12 @@ import org.testcontainers.containers.RabbitMQContainer;
* Provides a static {@link RabbitMQContainer} that can be shared across test classes.
*
* @author Chris Bono
* @author Omer Celik
*/
public class RabbitTestContainer {
public final class RabbitTestContainer {
private RabbitTestContainer() {
}
private static final RabbitMQContainer RABBITMQ;
static {

View File

@@ -193,7 +193,7 @@ class RabbitBinderModuleTests {
private void checkCustomizedArgs() throws MalformedURLException, URISyntaxException, InterruptedException {
List<Map<String, Object>> bindings = RestUtils.getBindingsBySource(client, uri, "/", "process-in-0");
int n = 0;
while (n++ < 100 && bindings == null || bindings.size() < 1) {
while (n++ < 100 && bindings == null || bindings.isEmpty()) {
Thread.sleep(100);
bindings = RestUtils.getBindingsBySource(client, uri, "/", "process-in-0");
}