codestyle/src/main/java/se/jguru/nazgul/tools/codestyle/enforcer/rules/AbstractEnforcerRule.java
protected static List<String> splice(final String toSplice) {

        final List<String> toReturn = new ArrayList<String>();

        final StringTokenizer tok = new StringTokenizer(toSplice, ",", false);
        while (tok.hasMoreTokens()) {
            toReturn.add(tok.nextToken());
        }

        return toReturn;
    }
protected static List<String> splice(final String toSplice) {

        final List<String> toReturn = new ArrayList<String>();

        final StringTokenizer tok = new StringTokenizer(toSplice, ",", false);
        while (tok.hasMoreTokens()) {
            toReturn.add(tok.nextToken());
        }

        return toReturn;
    }
Helper method which splices the provided string into a List, separating on commas.

@param toSplice The string to splice
@return A list holding the elements of the spliced string.