Program: 58144
Project: 58144
Buggy source:
/** 
 * @return
 */
public static HashMap<String,HashMap<PlotId,Plot>> getPlots(){
  try {
    DatabaseMetaData data=connection.getMetaData();
    ResultSet rs=data.getColumns(null,null,"String_Node_Str","String_Node_Str");
    boolean execute=rs.next();
    if (execute) {
      Statement statement=connection.createStatement();
      statement.addBatch("String_Node_Str");
      statement.addBatch("String_Node_Str");
      statement.addBatch("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
      statement.addBatch("String_Node_Str");
      statement.addBatch("String_Node_Str");
      statement.executeBatch();
      statement.close();
    }
    rs=data.getColumns(null,null,"String_Node_Str","String_Node_Str");
    if (!rs.next()) {
      Statement statement=connection.createStatement();
      statement.addBatch("String_Node_Str");
      statement.executeBatch();
      statement.close();
    }
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  HashMap<String,HashMap<PlotId,Plot>> plots=new HashMap<String,HashMap<PlotId,Plot>>();
  new HashMap<String,World>();
  Statement stmt=null;
  try {
    stmt=connection.createStatement();
    ResultSet r=stmt.executeQuery("String_Node_Str");
    PlotId plot_id;
    int id;
    Plot p;
    while (r.next()) {
      plot_id=new PlotId(r.getInt("String_Node_Str"),r.getInt("String_Node_Str"));
      id=r.getInt("String_Node_Str");
      String worldname=r.getString("String_Node_Str");
      HashMap<String,Object> settings=getSettings(id);
      UUID owner=UUID.fromString(r.getString("String_Node_Str"));
      Biome plotBiome=Biome.FOREST;
      String[] flags_string;
      if (settings.get("String_Node_Str") == null) {
        flags_string=new String[]{};
      }
 else {
        flags_string=((String)settings.get("String_Node_Str")).split("String_Node_Str");
      }
      Flag[] flags=new Flag[flags_string.length];
      for (int i=0; i < flags.length; i++) {
        if (flags_string[i].contains("String_Node_Str")) {
          String[] split=flags_string[i].split("String_Node_Str");
          flags[i]=new Flag(FlagManager.getFlag(split[0],true),split[1]);
        }
 else {
          flags[i]=new Flag(FlagManager.getFlag(flags_string[i],true),"String_Node_Str");
        }
      }
      ArrayList<UUID> helpers=plotHelpers(id);
      ArrayList<UUID> trusted=plotTrusted(id);
      ArrayList<UUID> denied=plotDenied(id);
      long time=8000l;
      boolean rain;
      try {
        rain=(int)settings.get("String_Node_Str") == 1 ? true : false;
      }
 catch (      Exception e) {
        rain=false;
      }
      String alias=(String)settings.get("String_Node_Str");
      if ((alias == null) || alias.equalsIgnoreCase("String_Node_Str")) {
        alias="String_Node_Str";
      }
      PlotHomePosition position=null;
      for (      PlotHomePosition plotHomePosition : PlotHomePosition.values()) {
        if (settings.get("String_Node_Str") == null) {
          position=PlotHomePosition.DEFAULT;
          break;
        }
        if (plotHomePosition.isMatching((String)settings.get("String_Node_Str"))) {
          position=plotHomePosition;
        }
      }
      if (position == null) {
        position=PlotHomePosition.DEFAULT;
      }
      int merged_int=settings.get("String_Node_Str") == null ? 0 : (int)settings.get("String_Node_Str");
      boolean[] merged=new boolean[4];
      for (int i=0; i < 4; i++) {
        merged[3 - i]=(merged_int & (1 << i)) != 0;
      }
      p=new Plot(plot_id,owner,plotBiome,helpers,trusted,denied,false,time,rain,alias,position,flags,worldname,merged);
      if (plots.containsKey(worldname)) {
        plots.get(worldname).put((plot_id),p);
      }
 else {
        HashMap<PlotId,Plot> map=new HashMap<PlotId,Plot>();
        map.put((plot_id),p);
        plots.put(worldname,map);
      }
    }
    stmt.close();
  }
 catch (  SQLException e) {
    Logger.add(LogLevel.WARNING,"String_Node_Str");
    e.printStackTrace();
  }
  return plots;
}

Fixed version (ground truth):
/** 
 * @return
 */
public static HashMap<String,HashMap<PlotId,Plot>> getPlots(){
  try {
    DatabaseMetaData data=connection.getMetaData();
    ResultSet rs=data.getColumns(null,null,"String_Node_Str","String_Node_Str");
    boolean execute=rs.next();
    if (execute) {
      Statement statement=connection.createStatement();
      statement.addBatch("String_Node_Str");
      statement.addBatch("String_Node_Str");
      statement.addBatch("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
      statement.addBatch("String_Node_Str");
      statement.addBatch("String_Node_Str");
      statement.executeBatch();
      statement.close();
    }
    rs=data.getColumns(null,null,"String_Node_Str","String_Node_Str");
    if (!rs.next()) {
      Statement statement=connection.createStatement();
      statement.addBatch("String_Node_Str");
      statement.executeBatch();
      statement.close();
    }
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  HashMap<String,HashMap<PlotId,Plot>> plots=new HashMap<String,HashMap<PlotId,Plot>>();
  Statement stmt=null;
  try {
    Set<String> worlds=new HashSet<String>();
    if (PlotMain.config.contains("String_Node_Str")) {
      worlds=PlotMain.config.getConfigurationSection("String_Node_Str").getKeys(false);
    }
    stmt=connection.createStatement();
    ResultSet r=stmt.executeQuery("String_Node_Str");
    PlotId plot_id;
    int id;
    Plot p;
    while (r.next()) {
      plot_id=new PlotId(r.getInt("String_Node_Str"),r.getInt("String_Node_Str"));
      id=r.getInt("String_Node_Str");
      String worldname=r.getString("String_Node_Str");
      HashMap<String,Object> settings=getSettings(id);
      UUID owner=UUID.fromString(r.getString("String_Node_Str"));
      Biome plotBiome=Biome.FOREST;
      String[] flags_string;
      if (settings.get("String_Node_Str") == null) {
        flags_string=new String[]{};
      }
 else {
        flags_string=((String)settings.get("String_Node_Str")).split("String_Node_Str");
      }
      Flag[] flags=new Flag[flags_string.length];
      for (int i=0; i < flags.length; i++) {
        if (flags_string[i].contains("String_Node_Str")) {
          String[] split=flags_string[i].split("String_Node_Str");
          flags[i]=new Flag(FlagManager.getFlag(split[0],true),split[1]);
        }
 else {
          flags[i]=new Flag(FlagManager.getFlag(flags_string[i],true),"String_Node_Str");
        }
      }
      ArrayList<UUID> helpers=plotHelpers(id);
      ArrayList<UUID> trusted=plotTrusted(id);
      ArrayList<UUID> denied=plotDenied(id);
      long time=8000l;
      boolean rain;
      try {
        rain=(int)settings.get("String_Node_Str") == 1 ? true : false;
      }
 catch (      Exception e) {
        rain=false;
      }
      String alias=(String)settings.get("String_Node_Str");
      if ((alias == null) || alias.equalsIgnoreCase("String_Node_Str")) {
        alias="String_Node_Str";
      }
      PlotHomePosition position=null;
      for (      PlotHomePosition plotHomePosition : PlotHomePosition.values()) {
        if (settings.get("String_Node_Str") == null) {
          position=PlotHomePosition.DEFAULT;
          break;
        }
        if (plotHomePosition.isMatching((String)settings.get("String_Node_Str"))) {
          position=plotHomePosition;
        }
      }
      if (position == null) {
        position=PlotHomePosition.DEFAULT;
      }
      int merged_int=settings.get("String_Node_Str") == null ? 0 : (int)settings.get("String_Node_Str");
      boolean[] merged=new boolean[4];
      for (int i=0; i < 4; i++) {
        merged[3 - i]=(merged_int & (1 << i)) != 0;
      }
      p=new Plot(plot_id,owner,plotBiome,helpers,trusted,denied,false,time,rain,alias,position,flags,worldname,merged);
      if (plots.containsKey(worldname)) {
        plots.get(worldname).put((plot_id),p);
      }
 else {
        if (worlds.contains(p.world)) {
          HashMap<PlotId,Plot> map=new HashMap<PlotId,Plot>();
          map.put((plot_id),p);
          plots.put(worldname,map);
        }
 else {
          PlotMain.sendConsoleSenderMessage("String_Node_Str" + p.id + "String_Node_Str"+ p.world+ "String_Node_Str");
        }
      }
    }
    stmt.close();
  }
 catch (  SQLException e) {
    Logger.add(LogLevel.WARNING,"String_Node_Str");
    e.printStackTrace();
  }
  return plots;
}