Skip to content

Commit 8f8e91a

Browse files
committed
Silence Eclipse warnings.
1 parent 4c8235b commit 8f8e91a

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

src/test/java/org/mastodon/StartImageJ.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@
3838
*/
3939
public class StartImageJ
4040
{
41-
public static void main( String... args )
41+
public static void main( final String... args )
4242
{
43-
Context context = new Context();
44-
UIService uiService = context.service( UIService.class );
43+
@SuppressWarnings( "resource" )
44+
final Context context = new Context();
45+
final UIService uiService = context.service( UIService.class );
4546
uiService.showUI();
4647
}
4748
}

src/test/java/org/mastodon/StartMastodonLauncher.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,13 @@
4040
*/
4141
public class StartMastodonLauncher
4242
{
43-
public static void main( String... args )
43+
public static void main( final String... args )
4444
{
45-
Context context = new Context();
46-
UIService uiService = context.service( UIService.class );
45+
@SuppressWarnings( "resource" )
46+
final Context context = new Context();
47+
final UIService uiService = context.service( UIService.class );
4748
uiService.showUI();
48-
CommandService commandService = context.service( CommandService.class );
49+
final CommandService commandService = context.service( CommandService.class );
4950
commandService.run( MastodonLauncherCommand.class, true );
5051
}
5152
}

0 commit comments

Comments
 (0)