resolved warning

This commit is contained in:
cola98765
2021-10-11 22:14:56 +02:00
parent 732476b454
commit b5ab06bfb6
@@ -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));
}
}