[Demonstration 1]

[Buggy Method]
private Token nextToken() throws IOException {
    if (extraToken != null) {
        // read the next token already.
        Token result = extraToken;
        extraToken = null;
        return result;
    }
    // get to the first non space code point.
    int codePoint = nextCodePoint();
    while (codePoint >= 0 && Character.isSpaceChar(codePoint)) {
        codePoint = nextCodePoint();
    }
    if (codePoint < 0) {
        // end of input.
        return null;
    }
    char ch = codePoint <= 0xFFFF ? (char) codePoint : 0;
    // look for the token.
    switch(ch) {
        case '{':
        case '}':
        case '[':
        case ']':
        case ',':
        case ':':
            return SIMPLE_TOKENS.get(ch);
        case '"':
        case '\'':
            // string or quoted identifier or date string.
            return new Token(TokenType.STRING, getQuotedString(ch));
        default:
            // something else.  need to go to the next token or end of input
            // to get this token.
            return matchOthers(getOtherTokenString(codePoint));
    }
}

[Buggy Hunk]
while ( codePoint >= 0 && Character.isSpaceChar(codePoint) ){

[Patch]
while ( codePoint >= 0 && Character.isWhitespace(codePoint) ){

[Demonstration 2]

[Buggy Method]
@Override
public void didDismissInterstitial(String location) {
    LoggingUtil.v("Called ChartBoostUtil.didDismissInterstitial(String location)");
    UnityAdCallbacks.AdFinished("ChartBoost", "interstitial", "close");
    cacheInterstitial();
}

[Buggy Hunk]
UnityAdCallbacks.AdFinished("ChartBoost", "interstitial", "close");

[Patch]
nativeAdCallbacks.adFinished("ChartBoost", "interstitial", "close");