From 569bad16daa633ab12f941d65d736a40d0dc50f8 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Tue, 27 Feb 2018 10:54:43 +0100 Subject: [PATCH] Polish --- .../src/main/java/org/springframework/boot/ansi/AnsiOutput.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/ansi/AnsiOutput.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/ansi/AnsiOutput.java index 1c9c7c9cdf..33f9f799a3 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/ansi/AnsiOutput.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/ansi/AnsiOutput.java @@ -151,7 +151,7 @@ public abstract class AnsiOutput { if ((consoleAvailable == null) && (System.console() == null)) { return false; } - return !(OPERATING_SYSTEM_NAME.indexOf("win") >= 0); + return !(OPERATING_SYSTEM_NAME.contains("win")); } catch (Throwable ex) { return false;