Removed warnings
This commit is contained in:
@@ -26,5 +26,10 @@
|
||||
<groupId>org.springframework.integration</groupId>
|
||||
<artifactId>spring-integration-amqp</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-configuration-processor</artifactId>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
||||
@@ -119,7 +119,6 @@ public class RabbitBindingCleaner implements BindingCleaner {
|
||||
URI uri = UriComponentsBuilder.fromUriString(adminUri + "/api")
|
||||
.pathSegment("queues", "{vhost}")
|
||||
.buildAndExpand(vhost).encode().toUri();
|
||||
@SuppressWarnings("unchecked")
|
||||
List<Map<String, Object>> queues = restTemplate.getForObject(uri, List.class);
|
||||
return queues;
|
||||
}
|
||||
@@ -139,7 +138,6 @@ public class RabbitBindingCleaner implements BindingCleaner {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
private List<String> findExchanges(String adminUri, String vhost, String binderPrefix, String entity,
|
||||
RestTemplate restTemplate) {
|
||||
List<String> removedExchanges = new ArrayList<>();
|
||||
|
||||
@@ -139,7 +139,7 @@ public class RabbitMessageChannelBinder
|
||||
|
||||
public RabbitMessageChannelBinder(ConnectionFactory connectionFactory, RabbitProperties rabbitProperties,
|
||||
RabbitExchangeQueueProvisioner provisioningProvider) {
|
||||
super(true, new String[0], provisioningProvider);
|
||||
super(new String[0], provisioningProvider);
|
||||
Assert.notNull(connectionFactory, "connectionFactory must not be null");
|
||||
Assert.notNull(rabbitProperties, "rabbitProperties must not be null");
|
||||
this.connectionFactory = connectionFactory;
|
||||
|
||||
@@ -139,7 +139,6 @@ public class RabbitBinderCleanerTests {
|
||||
|
||||
Object consumers = null;
|
||||
while (n++ < 100 && (consumers == null || consumers.equals(Integer.valueOf(state)))) {
|
||||
@SuppressWarnings("unchecked")
|
||||
Map<String, Object> queueInfo = template.getForObject(uri, Map.class);
|
||||
consumers = queueInfo.get("consumers");
|
||||
if (consumers == null || consumers.equals(Integer.valueOf(state))) {
|
||||
|
||||
@@ -145,7 +145,6 @@ public class RabbitBinderModuleTests {
|
||||
CompositeHealthIndicator.class);
|
||||
DirectFieldAccessor directFieldAccessor = new DirectFieldAccessor(bindersHealthIndicator);
|
||||
assertThat(bindersHealthIndicator).isNotNull();
|
||||
@SuppressWarnings("unchecked")
|
||||
Map<String, HealthIndicator> healthIndicators = (Map<String, HealthIndicator>) directFieldAccessor
|
||||
.getPropertyValue("indicators");
|
||||
assertThat(healthIndicators).containsKey("rabbit");
|
||||
|
||||
Reference in New Issue
Block a user