Skip to content

Commit 5891bb8

Browse files
committed
Code cleanup
1 parent bc42a31 commit 5891bb8

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

BAR/src/main/java/bar/Runner.java

-4
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
import java.util.Map;
88
import java.util.concurrent.Future;
99

10-
import javax.script.ScriptException;
11-
1210
import net.imagej.ImageJ;
1311

1412
import org.scijava.Context;
@@ -192,13 +190,11 @@ else if (fsm.isDone())
192190
public void runIJ1Macro(final String path, final String arg) {
193191
String macro = null;
194192
try {
195-
@SuppressWarnings("resource")
196193
final InputStream is = Utils.class.getResourceAsStream("/scripts/BAR/" + path);
197194
if (is == null) {
198195
error("Could not find " + path, IO_ERROR);
199196
return;
200197
}
201-
@SuppressWarnings("resource")
202198
final InputStreamReader isr = new InputStreamReader(is);
203199
setLoaded(true);
204200
final StringBuffer sb = new StringBuffer();

BAR/src/main/java/bar/Utils.java

-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ public void run(final String arg) {
136136
}
137137
}
138138

139-
140139
/**
141140
* Retrieves BAR's version
142141
*

BAR/src/main/java/bar/plugin/InteractivePlotter.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,6 @@ private void updateOptionsMenu() {
459459

460460
private class PlotInstance {
461461
private final PlotWindow plotWindow;
462-
@SuppressWarnings({ "hiding" })
463462
private Plot plot;
464463
private String title;
465464

@@ -808,7 +807,7 @@ private Button largeButton() {
808807
final FontMetrics fm = new Canvas().getFontMetrics(font);
809808
final int width = fm.stringWidth(expandedLabel);
810809
final Button button = new Button(expandedLabel);
811-
button.setPreferredSize(new Dimension(width, 2*fm.getHeight()));
810+
button.setPreferredSize(new Dimension(width, 2 * fm.getHeight()));
812811
return button;
813812
}
814813

0 commit comments

Comments
 (0)