checkstyle

This commit is contained in:
jendave
2011-12-12 21:04:07 +00:00
parent 79a3a3ca32
commit ad50e13428
11 changed files with 112 additions and 106 deletions

1
.gitattributes vendored
View File

@@ -10753,6 +10753,7 @@ src/main/java/forge/control/ControlMatchUI.java -text
src/main/java/forge/control/ControlWinLose.java -text
src/main/java/forge/control/home/ControlConstructed.java -text
src/main/java/forge/control/home/ControlQuest.java -text
src/main/java/forge/control/home/package-info.java -text svneol=native#text/plain
src/main/java/forge/control/match/ControlDetail.java -text
src/main/java/forge/control/match/ControlDock.java -text
src/main/java/forge/control/match/ControlField.java -text

View File

@@ -0,0 +1,3 @@
/** Controller (as in model-view-controller) for Forge. */
package forge.control.home;

View File

@@ -608,10 +608,10 @@ public class MultiLineLabelUI extends BasicLabelUI implements ComponentListener
* Sets the label ui.
*
* @param labelUI
* the labelUI to set
* the new label ui
*/
public static void setLabelUI(final LabelUI labelUI0) {
MultiLineLabelUI.labelUI = labelUI0;
public static void setLabelUI(final LabelUI labelUI) {
MultiLineLabelUI.labelUI = labelUI;
}
/**

View File

@@ -56,8 +56,7 @@ public class MultiPhaseProgressMonitorWithETA extends BaseProgressMonitor {
* @see #MultiPhaseProgressMonitorWithETA(String,int,long,float,float[])
*/
public MultiPhaseProgressMonitorWithETA(final String neoTitle, final int numPhases,
final long totalUnitsFirstPhase, final float minUIUpdateIntervalSec)
{
final long totalUnitsFirstPhase, final float minUIUpdateIntervalSec) {
this(neoTitle, numPhases, totalUnitsFirstPhase, minUIUpdateIntervalSec, null);
}
@@ -88,8 +87,7 @@ public class MultiPhaseProgressMonitorWithETA extends BaseProgressMonitor {
* @see BaseProgressMonitor#BaseProgressMonitor(int,long,float,float[])
*/
public MultiPhaseProgressMonitorWithETA(final String neoTitle, final int numPhases,
final long totalUnitsFirstPhase, final float minUIUpdateIntervalSec,
final float[] phaseWeights) {
final long totalUnitsFirstPhase, final float minUIUpdateIntervalSec, final float[] phaseWeights) {
super(numPhases, totalUnitsFirstPhase, minUIUpdateIntervalSec, phaseWeights);
if (!SwingUtilities.isEventDispatchThread()) {
@@ -171,8 +169,10 @@ public class MultiPhaseProgressMonitorWithETA extends BaseProgressMonitor {
}
/**
* @param numUnits cannot be higher than Integer.MAX_VALUE
* Sets the total units this phase.
*
* @param numUnits
* cannot be higher than Integer.MAX_VALUE
* @see net.slightlymagic.braids.util.progress_monitor.ProgressMonitor#setTotalUnitsThisPhase(long)
*/
@Override
@@ -202,10 +202,8 @@ public class MultiPhaseProgressMonitorWithETA extends BaseProgressMonitor {
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
MultiPhaseProgressMonitorWithETA.this.dialog
.setTitle(MultiPhaseProgressMonitorWithETA.this.title);
MultiPhaseProgressMonitorWithETA.this.dialog
.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
MultiPhaseProgressMonitorWithETA.this.dialog.setTitle(MultiPhaseProgressMonitorWithETA.this.title);
MultiPhaseProgressMonitorWithETA.this.dialog.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
MultiPhaseProgressMonitorWithETA.this.dialog.setVisible(true);
MultiPhaseProgressMonitorWithETA.this.dialog.setResizable(true);
MultiPhaseProgressMonitorWithETA.this.dialog.getProgressBar().setIndeterminate(false);
@@ -222,6 +220,10 @@ public class MultiPhaseProgressMonitorWithETA extends BaseProgressMonitor {
}
/**
* Increment units completed this phase.
*
* @param numUnits
* the num units
* @see net.slightlymagic.braids.util.progress_monitor.ProgressMonitor#incrementUnitsCompletedThisPhase(long)
*/
@Override

View File

@@ -122,8 +122,8 @@ public class CardPanel extends JPanel implements CardContainer {
* @param connectedCard
* the connectedCard to set
*/
public void setConnectedCard(final CardPanel connectedCard0) {
this.connectedCard = connectedCard0;
public void setConnectedCard(final CardPanel connectedCard) {
this.connectedCard = connectedCard;
}
// ~