sls-versions/src/main/java/com/palantir/sls/versions/Parsers.java
// "x" is signified by the magic negative number -1, which is distinct from Integer.MIN_VALUE which is a failure
"x" is signified by the magic negative number -1, which is distinct from Integer.MIN_VALUE which is a failure
" x " is signified by the magic negative number - 1 which is distinct from Integer . MIN_VALUE which is a failure
static long numberOrX(String string, int startIndex) {
        long xResult = literalX(string, startIndex);
        if (isOk(xResult)) {
            return ok(getIndex(xResult), MAGIC_X_NUMBER);
        }
        long numberResult = number(string, startIndex);
        if (isOk(numberResult)) {
            return numberResult;
        }
        return fail(startIndex);
    }
static long numberOrX ( String string , int startIndex ) { long xResult = literalX ( string , startIndex ) ; if ( isOk ( xResult ) ) { return ok ( getIndex ( xResult ) , MAGIC_X_NUMBER ) ; } long numberResult = number ( string , startIndex ) ; if ( isOk ( numberResult ) ) { return numberResult ; } return fail ( startIndex ) ; }
"x" is signified by the magic negative number -1, which is distinct from Integer.MIN_VALUE which is a failure
" x " is signified by the magic negative number - 1 which is distinct from Integer . MIN_VALUE which is a failure