<propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>findbugs-maven-plugin</artifactId>
+ <configuration>
+ <failOnError>true</failOnError>
+ </configuration>
+ </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
final InetSocketAddress localAddress = arguments.getLocalAddress();
InetAddress currentLocal = localAddress.getAddress();
final int port = localAddress.getPort();
- for (final InetSocketAddress remoteAddress : arguments.getRemoteAddress()) {
- for (int i = 0; i < arguments.getRoutersCount(); i++) {
+ for (int i = 0; i < arguments.getRoutersCount(); i++) {
+ for (final InetSocketAddress remoteAddress : arguments.getRemoteAddress()) {
dispatcher.createClient(new InetSocketAddress(currentLocal, port), remoteAddress);
- currentLocal = InetAddresses.increment(currentLocal);
}
+ currentLocal = InetAddresses.increment(currentLocal);
+
}
}