From d6ea1c05a6c6135690eeae026d39d1a54000687c Mon Sep 17 00:00:00 2001 From: Federico Fissore Date: Mon, 31 Aug 2015 08:45:58 +0200 Subject: [PATCH] Cleanup --- arduino-core/src/processing/app/helpers/OSUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arduino-core/src/processing/app/helpers/OSUtils.java b/arduino-core/src/processing/app/helpers/OSUtils.java index 5efb77e29..80a36b9e9 100644 --- a/arduino-core/src/processing/app/helpers/OSUtils.java +++ b/arduino-core/src/processing/app/helpers/OSUtils.java @@ -7,7 +7,7 @@ public class OSUtils { */ static public boolean isWindows() { //return PApplet.platform == PConstants.WINDOWS; - return System.getProperty("os.name").indexOf("Windows") != -1; + return System.getProperty("os.name").contains("Windows"); } /** @@ -15,7 +15,7 @@ public class OSUtils { */ static public boolean isLinux() { //return PApplet.platform == PConstants.LINUX; - return System.getProperty("os.name").indexOf("Linux") != -1; + return System.getProperty("os.name").contains("Linux"); } /** @@ -23,7 +23,7 @@ public class OSUtils { */ static public boolean isMacOS() { //return PApplet.platform == PConstants.MACOSX; - return System.getProperty("os.name").indexOf("Mac") != -1; + return System.getProperty("os.name").contains("Mac"); } }