Better name for constant.

fix-message-formatting
Danny van Heumen 11 years ago
parent 148df2d18b
commit ab018c18fa

@ -23,7 +23,7 @@ public final class Utils
/** /**
* Index indicating the end of the color code. * Index indicating the end of the color code.
*/ */
private static final int INDEX_END_COLOR_CODE = 3; private static final int INDEX_END_BACKGROUND_COLOR_CODE = 3;
/** /**
* Private constructor since we do not need to construct anything. * Private constructor since we do not need to construct anything.
@ -94,7 +94,7 @@ public static String parseIrcMessage(final String text)
parseBackgroundColor(text.substring(i + 1)); parseBackgroundColor(text.substring(i + 1));
if (background != null) if (background != null)
{ {
i += INDEX_END_COLOR_CODE; i += INDEX_END_BACKGROUND_COLOR_CODE;
} }
builder.apply(new ControlChar.ColorFormat(foreground, builder.apply(new ControlChar.ColorFormat(foreground,
background)); background));

Loading…
Cancel
Save