File tree Expand file tree Collapse file tree 3 files changed +1
-7
lines changed
Expand file tree Collapse file tree 3 files changed +1
-7
lines changed Original file line number Diff line number Diff line change 77import java .util .Map ;
88import java .util .concurrent .Future ;
99
10- import javax .script .ScriptException ;
11-
1210import net .imagej .ImageJ ;
1311
1412import 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 ();
Original file line number Diff line number Diff line change @@ -136,7 +136,6 @@ public void run(final String arg) {
136136 }
137137 }
138138
139-
140139 /**
141140 * Retrieves BAR's version
142141 *
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments