Skip to content

Commit a82f9a0

Browse files
committed
Silenced function deprecated warning
1 parent bc54dd8 commit a82f9a0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/src/processing/app/Base.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ static public void main(String args[]) throws Exception {
141141
if (OSUtils.isMacOS()) {
142142
System.setProperty("apple.laf.useScreenMenuBar",
143143
String.valueOf(!System.getProperty("os.version").startsWith("10.13")
144-
|| com.apple.eawt.Application.getApplication().isAboutMenuItemPresent()));
144+
|| isMacOsAboutMenuItemPresent()));
145145

146146
ThinkDifferent.init();
147147
}
@@ -154,6 +154,11 @@ static public void main(String args[]) throws Exception {
154154
}
155155
}
156156

157+
@SuppressWarnings("deprecation")
158+
public static boolean isMacOsAboutMenuItemPresent() {
159+
return com.apple.eawt.Application.getApplication().isAboutMenuItemPresent();
160+
}
161+
157162
static public void initLogger() {
158163
Handler consoleHandler = new ConsoleLogger();
159164
consoleHandler.setLevel(Level.ALL);

0 commit comments

Comments
 (0)