Fix dspace-api unit tests to align with code style

This commit is contained in:
Tim Donohue
2018-02-28 10:50:31 -06:00
parent 2063632bac
commit 3e45d113dc
10 changed files with 41 additions and 27 deletions

View File

@@ -266,7 +266,10 @@ public class IPMatcherTest {
private ArrayList<String> getAllIp4Except(ArrayList<String> exceptions) {
int d1 = 0, d2 = 0, d3 = 0, d4 = 0;
int d1 = 0;
int d2 = 0;
int d3 = 0;
int d4 = 0;
ArrayList<String> ips = new ArrayList<String>();
for (d1 = 0; d1 <= 255; d1 += increment) {
for (d2 = 0; d2 <= 255; d2 += increment) {
@@ -285,7 +288,10 @@ public class IPMatcherTest {
private void verifyAllIp4Except(ArrayList<String> exceptions, boolean asserted, IPMatcher ipMatcher)
throws IPMatcherException {
int d1 = 0, d2 = 0, d3 = 0, d4 = 0;
int d1 = 0;
int d2 = 0;
int d3 = 0;
int d4 = 0;
for (d1 = 0; d1 <= 255; d1 += increment) {
for (d2 = 0; d2 <= 255; d2 += increment) {
for (d3 = 0; d3 <= 255; d3 += increment) {