Program: 25298
Project: 25298
Buggy source:
/** 
 * Get all the queries in the query server; can be filtered with state and queryName. This will by default only return queries submitted by the user that has started the session. To get queries of all users, set the searchAllUsers parameter to false.
 * @param sessionid The sessionid in which queryName is working
 * @param state If any state is passed, all the queries in that state will be returned, otherwise all queries will be returned. Possible states are  {@value QueryStatus.Status#values()}
 * @param queryName If any queryName is passed, all the queries containing the queryName will be returned, otherwise all the queries will be returned
 * @param user Returns queries submitted by this user. If set to "all", returns queries of all users. By default, returns queries of the current user.
 * @param fromDate from date to search queries in a time range
 * @param toDate to date to search queries in a time range
 * @return List of {@link QueryHandle} objects
 */
@GET @Path("String_Node_Str") @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML,MediaType.TEXT_PLAIN}) public List<QueryHandle> getAllQueries(@QueryParam("String_Node_Str") LensSessionHandle sessionid,@DefaultValue("String_Node_Str") @QueryParam("String_Node_Str") String state,@DefaultValue("String_Node_Str") @QueryParam("String_Node_Str") String queryName,@DefaultValue("String_Node_Str") @QueryParam("String_Node_Str") String user,@DefaultValue("String_Node_Str") @QueryParam("String_Node_Str") long fromDate,@DefaultValue("String_Node_Str") @QueryParam("String_Node_Str") long toDate){
  checkSessionId(sessionid);
  try {
    if (toDate == -1L) {
      toDate=Long.MAX_VALUE;
    }
    return queryServer.getAllQueries(sessionid,state,user,queryName,fromDate,toDate);
  }
 catch (  LensException e) {
    throw new WebApplicationException(e);
  }
}

Fixed version (ground truth):
/** 
 * Get all the queries in the query server; can be filtered with state and queryName. This will by default only return queries submitted by the user that has started the session. To get queries of all users, set the searchAllUsers parameter to false.
 * @param sessionid The sessionid in which queryName is working
 * @param state If any state is passed, all the queries in that state will be returned, otherwise all queries will be returned. Possible states are  {@value QueryStatus.Status#values()}
 * @param queryName If any queryName is passed, all the queries containing the queryName will be returned, otherwise all the queries will be returned
 * @param user Returns queries submitted by this user. If set to "all", returns queries of all users. By default, returns queries of the current user.
 * @param fromDate from date to search queries in a time range, the range is inclusive(submitTime >= fromDate)
 * @param toDate to date to search queries in a time range, the range is inclusive(toDate >= submitTime)
 * @return List of {@link QueryHandle} objects
 */
@GET @Path("String_Node_Str") @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML,MediaType.TEXT_PLAIN}) public List<QueryHandle> getAllQueries(@QueryParam("String_Node_Str") LensSessionHandle sessionid,@DefaultValue("String_Node_Str") @QueryParam("String_Node_Str") String state,@DefaultValue("String_Node_Str") @QueryParam("String_Node_Str") String queryName,@DefaultValue("String_Node_Str") @QueryParam("String_Node_Str") String user,@DefaultValue("String_Node_Str") @QueryParam("String_Node_Str") long fromDate,@DefaultValue("String_Node_Str") @QueryParam("String_Node_Str") long toDate){
  checkSessionId(sessionid);
  try {
    if (toDate == -1L) {
      toDate=Long.MAX_VALUE;
    }
    return queryServer.getAllQueries(sessionid,state,user,queryName,fromDate,toDate);
  }
 catch (  LensException e) {
    throw new WebApplicationException(e);
  }
}