mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
- CheckStyle.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user