private void checkForMalformedCommandParameters(final List<String> messages) {
        if (commandParams.isEmpty()) {
            return;
        }

        final int CHANGESET_MINIMUM_IDENTIFIER_PARTS = 3;

        if (COMMANDS.CALCULATE_CHECKSUM.equalsIgnoreCase(command)) {
            for (final String param : commandParams) {
                if ((param != null) && !param.startsWith("-")) {
                    final String[] parts = param.split("::");
                    if (parts.length < CHANGESET_MINIMUM_IDENTIFIER_PARTS) {
                        messages.add(coreBundle.getString("changeset.identifier.must.have.form.filepath.id.author"));
                        break;
                    }
                }
            }
        } else if (COMMANDS.DIFF_CHANGELOG.equalsIgnoreCase(command) && (diffTypes != null) && diffTypes.toLowerCase
                ().contains("data")) {
            messages.add(String.format(coreBundle.getString("including.data.diffchangelog.has.no.effect"),
                    OPTIONS.DIFF_TYPES, COMMANDS.GENERATE_CHANGELOG
            ));
        }
    }
private void checkForMalformedCommandParameters(final List<String> messages) {
        if (commandParams.isEmpty()) {
            return;
        }

        final int CHANGESET_MINIMUM_IDENTIFIER_PARTS = 3;

        if (COMMANDS.CALCULATE_CHECKSUM.equalsIgnoreCase(command)) {
            for (final String param : commandParams) {
                if ((param != null) && !param.startsWith("-")) {
                    final String[] parts = param.split("::");
                    if (parts.length < CHANGESET_MINIMUM_IDENTIFIER_PARTS) {
                        messages.add(coreBundle.getString("changeset.identifier.must.have.form.filepath.id.author"));
                        break;
                    }
                }
            }
        } else if (COMMANDS.DIFF_CHANGELOG.equalsIgnoreCase(command) && (diffTypes != null) && diffTypes.toLowerCase
                ().contains("data")) {
            messages.add(String.format(coreBundle.getString("including.data.diffchangelog.has.no.effect"),
                    OPTIONS.DIFF_TYPES, COMMANDS.GENERATE_CHANGELOG
            ));
        }
    }
private void checkForMalformedCommandParameters ( final List < String > messages ) { if ( commandParams . isEmpty ( ) ) { return ; } final int CHANGESET_MINIMUM_IDENTIFIER_PARTS = 3 ; if ( COMMANDS . CALCULATE_CHECKSUM . equalsIgnoreCase ( command ) ) { for ( final String param : commandParams ) { if ( ( param != null ) && ! param . startsWith ( "-" ) ) { final String [ ] parts = param . split ( "::" ) ; if ( parts . length < CHANGESET_MINIMUM_IDENTIFIER_PARTS ) { messages . add ( coreBundle . getString ( "changeset.identifier.must.have.form.filepath.id.author" ) ) ; break ; } } } } else if ( COMMANDS . DIFF_CHANGELOG . equalsIgnoreCase ( command ) && ( diffTypes != null ) && diffTypes . toLowerCase ( ) . contains ( "data" ) ) { messages . add ( String . format ( coreBundle . getString ( "including.data.diffchangelog.has.no.effect" ) , OPTIONS . DIFF_TYPES , COMMANDS . GENERATE_CHANGELOG ) ) ; } }
Checks for incorrectly written command line parameters and, if any problems are found,
returns the list of issues in String form.

@param messages an array of Strings to which messages for issues found will be added
Checks for incorrectly written command line parameters and if any problems are found returns the list of issues in String form .