From b5ab06bfb6a23737e64c7c2076391cfb5b71b893 Mon Sep 17 00:00:00 2001 From: cola98765 Date: Mon, 11 Oct 2021 22:14:56 +0200 Subject: [PATCH] resolved warning --- src/main/java/com/seibel/lod/util/ColorUtil.java | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/seibel/lod/util/ColorUtil.java b/src/main/java/com/seibel/lod/util/ColorUtil.java index afce7def3..3972ee651 100644 --- a/src/main/java/com/seibel/lod/util/ColorUtil.java +++ b/src/main/java/com/seibel/lod/util/ColorUtil.java @@ -100,14 +100,12 @@ public class ColorUtil public static String toString(int color) { - StringBuilder s = new StringBuilder(); - s.append(Integer.toHexString(getAlpha(color))); - s.append(" "); - s.append(Integer.toHexString(getRed(color))); - s.append(" "); - s.append(Integer.toHexString(getGreen(color))); - s.append(" "); - s.append(Integer.toHexString(getBlue(color))); - return s.toString(); + return Integer.toHexString(getAlpha(color)) + + " " + + Integer.toHexString(getRed(color)) + + " " + + Integer.toHexString(getGreen(color)) + + " " + + Integer.toHexString(getBlue(color)); } }