Skip to content

Commit a72c231

Browse files
committed
MacOSPlatform: fix warnings
1 parent fdce7d8 commit a72c231

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/org/scijava/plugins/platforms/macos/MacOSPlatform.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public boolean registerAppMenus(final Object menus) {
128128

129129
@Override
130130
public void dispose() {
131-
getPlatformService().getEventService().unsubscribe(subscribers);
131+
getPlatformService().eventService().unsubscribe(subscribers);
132132
}
133133

134134
// -- Event handlers --
@@ -148,13 +148,13 @@ protected void onEvent(final WinActivatedEvent evt) {
148148

149149
private void removeAppCommandsFromMenu() {
150150
final PlatformService platformService = getPlatformService();
151-
final EventService eventService = platformService.getEventService();
152-
final CommandService commandService = platformService.getCommandService();
151+
final EventService eventService = platformService.eventService();
152+
final CommandService commandService = platformService.commandService();
153153

154154
// NB: Search for commands being handled at the application level.
155155
// We remove such commands from the main menu bar;
156156
// the Mac application menu will trigger them instead.
157-
final ArrayList<ModuleInfo> infos = new ArrayList<ModuleInfo>();
157+
final ArrayList<ModuleInfo> infos = new ArrayList<>();
158158
for (final CommandInfo info : commandService.getCommands()) {
159159
if (info.is("app-command")) {
160160
info.setMenuPath(null);

0 commit comments

Comments
 (0)