@SuppressWarnings("squid:S109")
    private static String[] splitArg(String arg) throws CommandLineParsingException {
        String[] splitArg = arg.split("=", 2);
        if (splitArg.length < 2) {
            throw new CommandLineParsingException(
                    String.format(coreBundle.getString("could.not.parse.expression"), arg)
            );
        }

        splitArg[0] = splitArg[0].replaceFirst("--", "");
        return splitArg;
    }
@SuppressWarnings("squid:S109")
    private static String[] splitArg(String arg) throws CommandLineParsingException {
        String[] splitArg = arg.split("=", 2);
        if (splitArg.length < 2) {
            throw new CommandLineParsingException(
                    String.format(coreBundle.getString("could.not.parse.expression"), arg)
            );
        }

        splitArg[0] = splitArg[0].replaceFirst("--", "");
        return splitArg;
    }
@ SuppressWarnings ( "squid:S109" ) private static String [ ] splitArg ( String arg ) throws CommandLineParsingException { String [ ] splitArg = arg . split ( "=" , 2 ) ; if ( splitArg . length < 2 ) { throw new CommandLineParsingException ( String . format ( coreBundle . getString ( "could.not.parse.expression" ) , arg ) ) ; } splitArg [ 0 ] = splitArg [ 0 ] . replaceFirst ( "--" , "" ) ; return splitArg ; }
What the number 2 stands for is obvious from the context
What the number 2 stands for is obvious from the context