File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
arduino-core/src/processing/app/helpers Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,23 +7,23 @@ public class OSUtils {
77 */
88 static public boolean isWindows () {
99 //return PApplet.platform == PConstants.WINDOWS;
10- return System .getProperty ("os.name" ).indexOf ("Windows" ) != - 1 ;
10+ return System .getProperty ("os.name" ).contains ("Windows" );
1111 }
1212
1313 /**
1414 * true if running on linux.
1515 */
1616 static public boolean isLinux () {
1717 //return PApplet.platform == PConstants.LINUX;
18- return System .getProperty ("os.name" ).indexOf ("Linux" ) != - 1 ;
18+ return System .getProperty ("os.name" ).contains ("Linux" );
1919 }
2020
2121 /**
2222 * returns true if Processing is running on a Mac OS X machine.
2323 */
2424 static public boolean isMacOS () {
2525 //return PApplet.platform == PConstants.MACOSX;
26- return System .getProperty ("os.name" ).indexOf ("Mac" ) != - 1 ;
26+ return System .getProperty ("os.name" ).contains ("Mac" );
2727 }
2828
2929}
You can’t perform that action at this time.
0 commit comments