Removed warnings

This commit is contained in:
Oleg Zhurakousky
2017-11-28 21:14:16 -05:00
parent 0542404f1a
commit 88434745d4
5 changed files with 6 additions and 5 deletions

View File

@@ -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>

View File

@@ -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<>();

View File

@@ -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;

View File

@@ -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))) {

View File

@@ -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");