File tree 3 files changed +1
-7
lines changed
3 files changed +1
-7
lines changed Original file line number Diff line number Diff line change 7
7
import java .util .Map ;
8
8
import java .util .concurrent .Future ;
9
9
10
- import javax .script .ScriptException ;
11
-
12
10
import net .imagej .ImageJ ;
13
11
14
12
import org .scijava .Context ;
@@ -192,13 +190,11 @@ else if (fsm.isDone())
192
190
public void runIJ1Macro (final String path , final String arg ) {
193
191
String macro = null ;
194
192
try {
195
- @ SuppressWarnings ("resource" )
196
193
final InputStream is = Utils .class .getResourceAsStream ("/scripts/BAR/" + path );
197
194
if (is == null ) {
198
195
error ("Could not find " + path , IO_ERROR );
199
196
return ;
200
197
}
201
- @ SuppressWarnings ("resource" )
202
198
final InputStreamReader isr = new InputStreamReader (is );
203
199
setLoaded (true );
204
200
final StringBuffer sb = new StringBuffer ();
Original file line number Diff line number Diff line change @@ -136,7 +136,6 @@ public void run(final String arg) {
136
136
}
137
137
}
138
138
139
-
140
139
/**
141
140
* Retrieves BAR's version
142
141
*
Original file line number Diff line number Diff line change @@ -459,7 +459,6 @@ private void updateOptionsMenu() {
459
459
460
460
private class PlotInstance {
461
461
private final PlotWindow plotWindow ;
462
- @ SuppressWarnings ({ "hiding" })
463
462
private Plot plot ;
464
463
private String title ;
465
464
@@ -808,7 +807,7 @@ private Button largeButton() {
808
807
final FontMetrics fm = new Canvas ().getFontMetrics (font );
809
808
final int width = fm .stringWidth (expandedLabel );
810
809
final Button button = new Button (expandedLabel );
811
- button .setPreferredSize (new Dimension (width , 2 * fm .getHeight ()));
810
+ button .setPreferredSize (new Dimension (width , 2 * fm .getHeight ()));
812
811
return button ;
813
812
}
814
813
You can’t perform that action at this time.
0 commit comments