91 |
} |
} |
92 |
|
|
93 |
@SuppressWarnings("PMD.CollapsibleIfStatements") |
@SuppressWarnings("PMD.CollapsibleIfStatements") |
94 |
public void closeUnvisitedAddresses(String distributor, EntryUgedage ugedage) { |
public int closeUnvisitedAddresses(String distributor, EntryUgedage ugedage) { |
95 |
|
|
96 |
|
int totalClosed = 0; |
97 |
|
|
98 |
for (Address addr : addressList) { |
for (Address addr : addressList) { |
99 |
if (addr.distributor == null) |
if (addr.distributor == null) |
100 |
continue; |
continue; |
169 |
if (addr.state == AddressState.NOT_CHANGED && closedCount>0) { |
if (addr.state == AddressState.NOT_CHANGED && closedCount>0) { |
170 |
addr.state = AddressState.CLOSED; |
addr.state = AddressState.CLOSED; |
171 |
} |
} |
172 |
|
|
173 |
|
if (closedCount>0) { |
174 |
|
totalClosed++; |
175 |
|
} |
176 |
|
|
177 |
} |
} |
178 |
|
|
179 |
|
return totalClosed; |
180 |
} |
} |
181 |
|
|
182 |
|
|
183 |
public void dumpChanged() { |
public void dumpChanged() { |
184 |
int count = 0; |
int count = 0; |
185 |
for (Address addr : addressList) { |
for (Address addr : addressList) { |