mirror of https://github.com/FreeCol/freecol.git
Move array indicators on type declaration - code cleanup
This commit is contained in:
parent
a17ccaa226
commit
44724605f8
|
@ -112,7 +112,7 @@ public class GUI extends FreeColClientHolder {
|
|||
};
|
||||
|
||||
/** Levels (danger, finance) for confirmEuropeanTribute(). */
|
||||
private static final String levels[] = { "low", "normal", "high" };
|
||||
private static final String[] levels = { "low", "normal", "high" };
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -112,7 +112,7 @@ public class FreeColLookAndFeel extends MetalLookAndFeel {
|
|||
private static final String transparentPanelUI
|
||||
= "net.sf.freecol.client.gui.plaf.FreeColTransparentPanelUI";
|
||||
|
||||
private static final Class uiClasses[] = {
|
||||
private static final Class[] uiClasses = {
|
||||
FreeColButtonUI.class,
|
||||
FreeColCheckBoxUI.class,
|
||||
FreeColComboBoxUI.class,
|
||||
|
|
|
@ -781,7 +781,7 @@ public final class Specification implements OptionContainer {
|
|||
String agesValue = "";
|
||||
if (!badAges) {
|
||||
agesValue = getText(GameOptions.AGES);
|
||||
String a[] = agesValue.split(",");
|
||||
String[] a = agesValue.split(",");
|
||||
badAges = a.length != NUMBER_OF_AGES-1;
|
||||
if (!badAges) {
|
||||
try {
|
||||
|
|
|
@ -1022,7 +1022,7 @@ public class BuildingTest extends FreeColTestCase {
|
|||
}
|
||||
|
||||
// Lumber and cross production data contributed by Lone_Wolf in BR#2981.
|
||||
private static int lumberProd[][][] = {
|
||||
private static int[][][] lumberProd = {
|
||||
{ // carpenterHouse
|
||||
{ 0, 0, 0, 1, 4 }, // -2
|
||||
{ 0, 0, 1, 2, 5 }, // -1
|
||||
|
@ -1045,7 +1045,7 @@ public class BuildingTest extends FreeColTestCase {
|
|||
|
||||
// Cross production is very like lumber production, with the addition of
|
||||
// the unattended production.
|
||||
private static int crossProd[][][] = {
|
||||
private static int[][][] crossProd = {
|
||||
{ // church
|
||||
{ 2, 2, 2, 3, 6 }, // -2
|
||||
{ 2, 2, 3, 4, 7 }, // -1
|
||||
|
@ -1067,7 +1067,7 @@ public class BuildingTest extends FreeColTestCase {
|
|||
}
|
||||
|
||||
// Factory production data contributed by Lone_Wolf in BR#2979.
|
||||
private static int factoryProd[][][] = {
|
||||
private static int[][][] factoryProd = {
|
||||
{ // house
|
||||
{ 0, 0, 0, 1, 2 }, // -2
|
||||
{ 0, 0, 1, 2, 4 }, // -1
|
||||
|
|
Loading…
Reference in New Issue