Program: 18594
Project: 18594
Buggy source:
/** 
 * Gets the consumer performance trend.
 * @param serviceName the service name
 * @param consumerName the consumer name
 * @param operationName the operation name
 * @param date1 the date1
 * @param date2 the date2
 * @param durationHrs the duration hrs
 * @return the consumer performance trend
 */
protected void getConsumerPerformanceTrend(final String serviceName,String consumerName,final String operationName,long date1,long date2,final int durationHrs){
  CriteriaInfoImpl criteriaInfo=new CriteriaInfoImpl();
  criteriaInfo.setMetricName("String_Node_Str");
  criteriaInfo.setConsumerName(consumerName);
  criteriaInfo.setServiceName(serviceName);
  if (operationName != null) {
    criteriaInfo.setOperationName(operationName);
  }
  criteriaInfo.setRoleType("String_Node_Str");
  Date firstDate=Util.resetTo12am(date1);
  Date secondDate=Util.resetTo12am(date2);
  MetricValue firstDateValue=new MetricValue(criteriaInfo,firstDate.getTime(),minAggregationPeriod * durationHrs,(int)minAggregationPeriod,"String_Node_Str");
  MetricValue secondDateValue=new MetricValue(criteriaInfo,secondDate.getTime(),minAggregationPeriod * durationHrs,(int)minAggregationPeriod,"String_Node_Str");
  queryService.getMetricValueTrend(firstDateValue,secondDateValue,new AsyncCallback<List<TimeSlotData>>(){
    @Override public void onSuccess(    List<TimeSlotData> dataRanges){
      String graphTitle="String_Node_Str";
      graphTitle="String_Node_Str" + serviceName;
      if (operationName != null) {
        graphTitle+="String_Node_Str" + operationName;
      }
      graphTitle+="String_Node_Str" + durationHrs + "String_Node_Str";
      ConsumerPresenter.this.view.activate();
      ConsumerPresenter.this.view.setConsumerPerformanceTrendData(dataRanges,graphTitle);
    }
    @Override public void onFailure(    Throwable exception){
      GWT.log(exception.getMessage());
    }
  }
);
}

Fixed version (ground truth):
/** 
 * Gets the consumer performance trend.
 * @param serviceName the service name
 * @param consumerName the consumer name
 * @param operationName the operation name
 * @param date1 the date1
 * @param date2 the date2
 * @param durationHrs the duration hrs
 * @return the consumer performance trend
 */
protected void getConsumerPerformanceTrend(final String serviceName,String consumerName,final String operationName,long date1,long date2,final int durationHrs){
  CriteriaInfoImpl criteriaInfo=new CriteriaInfoImpl();
  criteriaInfo.setMetricName("String_Node_Str");
  criteriaInfo.setConsumerName(consumerName);
  criteriaInfo.setServiceName(serviceName);
  if (operationName != null) {
    criteriaInfo.setOperationName(operationName);
  }
  criteriaInfo.setRoleType("String_Node_Str");
  MetricValue firstDateValue=new MetricValue(criteriaInfo,date1,minAggregationPeriod * durationHrs,(int)minAggregationPeriod,"String_Node_Str");
  MetricValue secondDateValue=new MetricValue(criteriaInfo,date2,minAggregationPeriod * durationHrs,(int)minAggregationPeriod,"String_Node_Str");
  queryService.getMetricValueTrend(firstDateValue,secondDateValue,new AsyncCallback<List<TimeSlotData>>(){
    @Override public void onSuccess(    List<TimeSlotData> dataRanges){
      String graphTitle="String_Node_Str";
      graphTitle="String_Node_Str" + serviceName;
      if (operationName != null) {
        graphTitle+="String_Node_Str" + operationName;
      }
      graphTitle+="String_Node_Str" + durationHrs + "String_Node_Str";
      ConsumerPresenter.this.view.activate();
      ConsumerPresenter.this.view.setConsumerPerformanceTrendData(dataRanges,graphTitle);
    }
    @Override public void onFailure(    Throwable exception){
      GWT.log(exception.getMessage());
    }
  }
);
}