Enable ModifierOrderCheck Checkstyle rule (#2673)
* Enable ModifierOrderCheck Checkstyle rule * Fix violations for `static` and `abstract` modifier * Remove redundant code in the `TcpNioConnection` * Mark `connectionFactoryName` as `@Nullable` in the `TcpConnectionSupport` ctor and its inheritors * Fix some smells according IDEA suggestions in the affected classes * This should fix some Sonar smells as well * * Fix `HeaderMapperTests` * * Polishing `TcpConnection` code style and fix Javdocs
This commit is contained in:
committed by
Gary Russell
parent
a01d09f0f1
commit
93d7c58b64
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
* Copyright 2002-2018 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.
|
||||
@@ -63,7 +63,7 @@ import com.rometools.rome.io.SyndFeedInput;
|
||||
public class FeedInboundChannelAdapterParserTests {
|
||||
|
||||
@ClassRule
|
||||
public final static TemporaryFolder tempFolder = new TemporaryFolder();
|
||||
public static final TemporaryFolder tempFolder = new TemporaryFolder();
|
||||
|
||||
|
||||
private static CountDownLatch latch;
|
||||
@@ -144,7 +144,7 @@ public class FeedInboundChannelAdapterParserTests {
|
||||
|
||||
public void receiveFeedEntry(Message<?> message) {
|
||||
MessageHistory history = MessageHistory.read(message);
|
||||
assertTrue(history.size() == 3);
|
||||
assertEquals(3, history.size());
|
||||
Properties historyItem = history.get(0);
|
||||
assertEquals("feedAdapterUsage", historyItem.get("name"));
|
||||
assertEquals("feed:inbound-channel-adapter", historyItem.get("type"));
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016 the original author or authors.
|
||||
* Copyright 2016-2018 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.
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package org.springframework.integration.feed.dsl;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertNull;
|
||||
@@ -56,7 +57,7 @@ import com.rometools.rome.feed.synd.SyndEntry;
|
||||
public class FeedDslTests {
|
||||
|
||||
@ClassRule
|
||||
public final static TemporaryFolder tempFolder = new TemporaryFolder();
|
||||
public static final TemporaryFolder tempFolder = new TemporaryFolder();
|
||||
|
||||
@Autowired
|
||||
private PollableChannel entries;
|
||||
@@ -70,6 +71,9 @@ public class FeedDslTests {
|
||||
Message<SyndEntry> message1 = (Message<SyndEntry>) this.entries.receive(10000);
|
||||
Message<SyndEntry> message2 = (Message<SyndEntry>) this.entries.receive(10000);
|
||||
Message<SyndEntry> message3 = (Message<SyndEntry>) this.entries.receive(10000);
|
||||
assertThat(message1).isNotNull();
|
||||
assertThat(message2).isNotNull();
|
||||
assertThat(message3).isNotNull();
|
||||
long time1 = message1.getPayload().getPublishedDate().getTime();
|
||||
long time2 = message2.getPayload().getPublishedDate().getTime();
|
||||
long time3 = message3.getPayload().getPublishedDate().getTime();
|
||||
|
||||
Reference in New Issue
Block a user