diff --git a/pmd/src/net/sourceforge/pmd/util/designer/Designer.java b/pmd/src/net/sourceforge/pmd/util/designer/Designer.java index 3f8b999f68..07fdd5d5f8 100644 --- a/pmd/src/net/sourceforge/pmd/util/designer/Designer.java +++ b/pmd/src/net/sourceforge/pmd/util/designer/Designer.java @@ -81,10 +81,9 @@ import org.jaxen.XPath; public class Designer implements ClipboardOwner { - private static final char labelImageSeparator = ':'; - private static final Color imageTextColour = Color.BLUE; - private static final String lineSeparator = System.getProperty("line.separator", "\n"); - + private static final char LABEL_IMAGE_SEPARATOR = ':'; + private static final Color IMAGE_TEXT_COLOR = Color.BLUE; + private interface Parser { public SimpleNode parse(StringReader sr); }; private static final Parser jdkParser1_3 = new Parser() { @@ -146,7 +145,7 @@ public class Designer implements ClipboardOwner { private void createKids() { String message = ((ParseException)item).getMessage(); - String[] lines = StringUtil.substringsOf(message, lineSeparator); + String[] lines = StringUtil.substringsOf(message, PMD.EOL); kids = new ExceptionNode[lines.length]; for (int i=0; i