[Demonstration 1]

[Buggy Method]
@Test
public void testGet() {
    String url = "http://www.apache.org";
    String body = HttpClientUtil.get(url, null);
    System.out.println(body);
}

[Buggy Hunk]
String body = HttpClientUtil.get(url, null);

[Patch]
String body = HttpClientUtil.get(url, null, "UTF-8");

[Demonstration 2]

[Buggy Method]
public static boolean validateSignature(@NotNull final String url, @NotNull final File keyFile, @NotNull final String keyId, @NotNull final CFPolicy policy, @NotNull final String signature) {
    try {
        if (policy.getStatements() == null || policy.getStatements().size() > 1) {
            throw new CFMockException("Only one policy statement supported at this time");
        }
        CFPolicyStatement statement = policy.getStatements().get(0);
        CloudFrontCookieSigner.CookiesForCustomPolicy cookiesForCustomPolicy = CloudFrontCookieSigner.getCookiesForCustomPolicy(null, null, keyFile, "http*://*/web/content/*", keyId, statement.dateLessThan, statement.getDateGreaterThan(), null);
        return signature.equals(cookiesForCustomPolicy.getSignature().getValue());
    } catch (InvalidKeySpecException | IOException e) {
        throw new CFMockException("unable to validate cookie", e);
    }
}

[Buggy Hunk]
"http*://*/web/content/*", keyId, statement.dateLessThan, statement.getDateGreaterThan(), null);

[Patch]
statement.getResource(), keyId, statement.dateLessThan, statement.getDateGreaterThan(), null);

[Demonstration 3]

[Buggy Method]
@Override
public CharSequence getPageTitle(int position) {
    return fragmentTitleList.get(position);
}

[Buggy Hunk]
return fragmentTitleList.get(position);

[Patch]
return pageTitleList.get(position);