Skip to content

Commit

Permalink
Remove imports | simplify append statement
Browse files Browse the repository at this point in the history
  • Loading branch information
RoiEXLab committed Dec 12, 2017
1 parent 53795f9 commit 06da9c3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/main/java/games/strategy/triplea/ui/StatPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.function.Predicate;
Expand Down
10 changes: 3 additions & 7 deletions src/main/java/games/strategy/triplea/ui/TripleAFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -599,13 +599,9 @@ void refresh() {
if (ta != null) {
final List<TerritoryEffect> territoryEffect = ta.getTerritoryEffect();
if (!territoryEffect.isEmpty()) {
buf.append(" (");
}
buf.append(territoryEffect.stream()
.map(TerritoryEffect::getName)
.collect(Collectors.joining(", ")));
if (!territoryEffect.isEmpty()) {
buf.append(")");
buf.append(territoryEffect.stream()
.map(TerritoryEffect::getName)
.collect(Collectors.joining(", ", " (", ")")));
}
final int production = ta.getProduction();
final int unitProduction = ta.getUnitProduction();
Expand Down
1 change: 0 additions & 1 deletion src/main/java/games/strategy/triplea/ui/screen/Tile.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
Expand Down

0 comments on commit 06da9c3

Please sign in to comment.