[Demonstration 1]

[Buggy Method]
public void processModelOutput(final ModelUpdateMessage modelOutput) {
    System.out.println("Publishing to topic:" + modelOutput);
    jmsTemplate.convertAndSend(modelOutput);
}

[Buggy Hunk]
jmsTemplate.convertAndSend(modelOutput);

[Patch]
jmsTemplate.convertAndSend(gson.toJson(modelOutput));

[Demonstration 2]

[Buggy Method]
@Provides
@Singleton
protected EarthquakeApiService provideApiService(RxJavaCallAdapterFactory rxJavaCallAdapterFactory, GsonConverterFactory gsonConverterFactory, OkHttpClient client) {
    return new Retrofit.Builder().addCallAdapterFactory(rxJavaCallAdapterFactory).addConverterFactory(gsonConverterFactory).client(client).baseUrl(Constants.BASE_URL).build().create(EarthquakeApiService.class);
}

[Buggy Hunk]
.addConverterFactory(gsonConverterFactory).client(client).baseUrl(Constants.BASE_URL).build().create(EarthquakeApiService.class);

[Patch]
.addConverterFactory(gsonConverterFactory).client(client).baseUrl(BASE_URL).build().create(EarthquakeApiService.class);

[Demonstration 3]

[Buggy Method]
@GET
@Path("{clientId}")
@NoCache
@Produces(MediaType.APPLICATION_JSON)
public Response getClientOwnerResource(String clientId) {
    checkRealmAdmin();
    checkClientOwnership(clientId);
    // Get the client
    ClientModel client = session.getContext().getRealm().getClientById(clientId);
    // Generate the representation from the client
    ClientRepresentation clientRepresentation = ModelToRepresentation.toRepresentation(client);
    return Response.ok(clientRepresentation).build();
}

[Buggy Hunk]
public Response getClientOwnerResource(String clientId) {

[Patch]
public Response getClientOwnerResource(@PathParam("clientId") String clientId) {