- CheckStyle.

This commit is contained in:
Chris
2012-11-30 19:27:09 +00:00
parent 3642d5c5d1
commit 5551bcd55f
9 changed files with 25 additions and 20 deletions

View File

@@ -78,8 +78,12 @@ public class FightEffect extends SpellEffect {
fighter2 = tgts.get(1);
}
if (fighter1 != null) fighterList.add(fighter1);
if (fighter2 != null) fighterList.add(fighter2);
if (fighter1 != null) {
fighterList.add(fighter1);
}
if (fighter2 != null) {
fighterList.add(fighter2);
}
return fighterList;
}

View File

@@ -357,13 +357,14 @@ public final class EditorTableModel<T extends InventoryItem> extends AbstractTab
}
public TableSorterCascade<InventoryItem> getSorter() {
if ( this.sorter == null )
if (this.sorter == null) {
this.sorter = createSorter();
}
return this.sorter;
}
private TableSorterCascade<InventoryItem> createSorter()
{
private TableSorterCascade<InventoryItem> createSorter() {
final List<TableSorter<InventoryItem>> oneColSorters
= new ArrayList<TableSorter<InventoryItem>>(maxSortDepth);

View File

@@ -92,7 +92,7 @@ public class GuiDownloadSetPicturesLQ extends GuiDownloader {
// read token names and urls
final ArrayList<DownloadObject> cList = new ArrayList<DownloadObject>();
Iterable<CardPrinted> allPrinted = Iterables.concat(CardDb.instance().getAllTraditionalCards(),CardDb.instance().getAllNonTraditionalCards());
Iterable<CardPrinted> allPrinted = Iterables.concat(CardDb.instance().getAllTraditionalCards(), CardDb.instance().getAllNonTraditionalCards());
for (final CardPrinted c : allPrinted) {
final String setCode3 = c.getEdition();

View File

@@ -354,7 +354,7 @@ public abstract class GuiDownloader extends DefaultBoundedRangeModel implements
// Don't allow redirections here!
URL imageUrl = new URL(url);
HttpURLConnection conn = (HttpURLConnection)imageUrl.openConnection();
HttpURLConnection conn = (HttpURLConnection) imageUrl.openConnection();
conn.setInstanceFollowRedirects(false);
conn.connect();