Program: 58082
Project: 58082
Buggy source:
/** 
 * @return
 */
@Override public LinkedHashMap<String,HashMap<PlotId,Plot>> getPlots(){
  final LinkedHashMap<String,HashMap<PlotId,Plot>> newplots=new LinkedHashMap<>();
  try {
    final DatabaseMetaData data=this.connection.getMetaData();
    ResultSet rs=data.getColumns(null,null,this.prefix + "String_Node_Str","String_Node_Str");
    final boolean execute=rs.next();
    if (execute) {
      final Statement statement=this.connection.createStatement();
      statement.addBatch("String_Node_Str" + this.prefix + "String_Node_Str");
      statement.addBatch("String_Node_Str" + this.prefix + "String_Node_Str");
      statement.addBatch("String_Node_Str" + this.prefix + "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" + this.prefix + "String_Node_Str");
      statement.addBatch("String_Node_Str" + this.prefix + "String_Node_Str");
      statement.executeBatch();
      statement.close();
    }
    rs=data.getColumns(null,null,this.prefix + "String_Node_Str","String_Node_Str");
    if (!rs.next()) {
      final Statement statement=this.connection.createStatement();
      statement.addBatch("String_Node_Str" + this.prefix + "String_Node_Str");
      statement.executeBatch();
      statement.close();
    }
  }
 catch (  final Exception e) {
    e.printStackTrace();
  }
  final HashMap<Integer,Plot> plots=new HashMap<>();
  Statement stmt=null;
  try {
    Set<String> worlds=new HashSet<>();
    if (PlotMain.config.contains("String_Node_Str")) {
      worlds=PlotMain.config.getConfigurationSection("String_Node_Str").getKeys(false);
    }
    final HashMap<String,UUID> uuids=new HashMap<String,UUID>();
    final HashMap<String,Integer> noExist=new HashMap<String,Integer>();
    stmt=this.connection.createStatement();
    ResultSet r=stmt.executeQuery("String_Node_Str" + this.prefix + "String_Node_Str");
    PlotId plot_id;
    int id;
    Plot p;
    String o;
    UUID user;
    while (r.next()) {
      plot_id=new PlotId(r.getInt("String_Node_Str"),r.getInt("String_Node_Str"));
      id=r.getInt("String_Node_Str");
      final String worldname=r.getString("String_Node_Str");
      if (!worlds.contains(worldname)) {
        if (noExist.containsKey(worldname)) {
          noExist.put(worldname,noExist.get(worldname) + 1);
        }
 else {
          noExist.put(worldname,1);
        }
      }
      o=r.getString("String_Node_Str");
      user=uuids.get(o);
      if (user == null) {
        user=UUID.fromString(o);
        uuids.put(o,user);
      }
      p=new Plot(plot_id,user,new ArrayList<UUID>(),new ArrayList<UUID>(),new ArrayList<UUID>(),"String_Node_Str",PlotHomePosition.DEFAULT,null,worldname,new boolean[]{false,false,false,false});
      plots.put(id,p);
    }
    r=stmt.executeQuery("String_Node_Str" + this.prefix + "String_Node_Str");
    while (r.next()) {
      id=r.getInt("String_Node_Str");
      o=r.getString("String_Node_Str");
      user=uuids.get(o);
      if (user == null) {
        user=UUID.fromString(o);
        uuids.put(o,user);
      }
      final Plot plot=plots.get(id);
      if (plot != null) {
        plot.addHelper(user);
      }
 else {
        PlotMain.sendConsoleSenderMessage("String_Node_Str" + id + "String_Node_Str");
      }
    }
    r=stmt.executeQuery("String_Node_Str" + this.prefix + "String_Node_Str");
    while (r.next()) {
      id=r.getInt("String_Node_Str");
      o=r.getString("String_Node_Str");
      user=uuids.get(o);
      if (user == null) {
        user=UUID.fromString(o);
        uuids.put(o,user);
      }
      final Plot plot=plots.get(id);
      if (plot != null) {
        plot.addTrusted(user);
      }
 else {
        PlotMain.sendConsoleSenderMessage("String_Node_Str" + id + "String_Node_Str");
      }
    }
    r=stmt.executeQuery("String_Node_Str" + this.prefix + "String_Node_Str");
    while (r.next()) {
      id=r.getInt("String_Node_Str");
      o=r.getString("String_Node_Str");
      user=uuids.get(o);
      if (user == null) {
        user=UUID.fromString(o);
        uuids.put(o,user);
      }
      final Plot plot=plots.get(id);
      if (plot != null) {
        plot.addDenied(user);
      }
 else {
        PlotMain.sendConsoleSenderMessage("String_Node_Str" + id + "String_Node_Str");
      }
    }
    r=stmt.executeQuery("String_Node_Str" + this.prefix + "String_Node_Str");
    while (r.next()) {
      id=r.getInt("String_Node_Str");
      final Plot plot=plots.get(id);
      if (plot != null) {
        final String b=r.getString("String_Node_Str");
        if (b != null) {
          for (          final Biome mybiome : Biome.values()) {
            if (mybiome.toString().equalsIgnoreCase(b)) {
              break;
            }
          }
        }
        final String alias=r.getString("String_Node_Str");
        if (alias != null) {
          plot.settings.setAlias(alias);
        }
        final String pos=r.getString("String_Node_Str");
        if (pos != null) {
          for (          final PlotHomePosition plotHomePosition : PlotHomePosition.values()) {
            if (plotHomePosition.isMatching(pos)) {
              if (plotHomePosition != PlotHomePosition.DEFAULT) {
                plot.settings.setPosition(plotHomePosition);
              }
              break;
            }
          }
        }
        final Integer m=r.getInt("String_Node_Str");
        if (m != null) {
          final boolean[] merged=new boolean[4];
          for (int i=0; i < 4; i++) {
            merged[3 - i]=((m) & (1 << i)) != 0;
          }
          plot.settings.setMerged(merged);
        }
 else {
          plot.settings.setMerged(new boolean[]{false,false,false,false});
        }
        String[] flags_string;
        final String myflags=r.getString("String_Node_Str");
        if (myflags == null) {
          flags_string=new String[]{};
        }
 else {
          if (myflags.length() > 0) {
            flags_string=myflags.split("String_Node_Str");
          }
 else {
            flags_string=new String[]{};
          }
        }
        final Set<Flag> flags=new HashSet<Flag>();
        boolean exception=false;
        for (        final String element : flags_string) {
          if (element.contains("String_Node_Str")) {
            final String[] split=element.split("String_Node_Str");
            try {
              System.out.print("String_Node_Str" + element);
              flags.add(new Flag(FlagManager.getFlag(split[0],true),split[1].replaceAll("String_Node_Str","String_Node_Str").replaceAll("String_Node_Str","String_Node_Str")));
            }
 catch (            final Exception e) {
              e.printStackTrace();
              exception=true;
            }
          }
 else {
            flags.add(new Flag(FlagManager.getFlag(element,true),"String_Node_Str"));
          }
        }
        if (exception) {
          PlotMain.sendConsoleSenderMessage("String_Node_Str" + id + "String_Node_Str");
          setFlags(id,flags.toArray(new Flag[0]));
        }
        plot.settings.flags=flags;
      }
 else {
        PlotMain.sendConsoleSenderMessage("String_Node_Str" + id + "String_Node_Str");
      }
    }
    stmt.close();
    for (    final Plot plot : plots.values()) {
      final String world=plot.world;
      if (!newplots.containsKey(world)) {
        newplots.put(world,new HashMap<PlotId,Plot>());
      }
      newplots.get(world).put(plot.id,plot);
    }
    boolean invalidPlot=false;
    for (    final String worldname : noExist.keySet()) {
      invalidPlot=true;
      PlotMain.sendConsoleSenderMessage("String_Node_Str" + noExist.get(worldname) + "String_Node_Str"+ worldname+ "String_Node_Str");
    }
    if (invalidPlot) {
      PlotMain.sendConsoleSenderMessage("String_Node_Str");
    }
  }
 catch (  final SQLException e) {
    PlotMain.sendConsoleSenderMessage("String_Node_Str" + "String_Node_Str");
    e.printStackTrace();
  }
  return newplots;
}

Fixed version (ground truth):
/** 
 * @return
 */
@Override public LinkedHashMap<String,HashMap<PlotId,Plot>> getPlots(){
  final LinkedHashMap<String,HashMap<PlotId,Plot>> newplots=new LinkedHashMap<>();
  try {
    final DatabaseMetaData data=this.connection.getMetaData();
    ResultSet rs=data.getColumns(null,null,this.prefix + "String_Node_Str","String_Node_Str");
    final boolean execute=rs.next();
    if (execute) {
      final Statement statement=this.connection.createStatement();
      statement.addBatch("String_Node_Str" + this.prefix + "String_Node_Str");
      statement.addBatch("String_Node_Str" + this.prefix + "String_Node_Str");
      statement.addBatch("String_Node_Str" + this.prefix + "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" + this.prefix + "String_Node_Str");
      statement.addBatch("String_Node_Str" + this.prefix + "String_Node_Str");
      statement.executeBatch();
      statement.close();
    }
    rs=data.getColumns(null,null,this.prefix + "String_Node_Str","String_Node_Str");
    if (!rs.next()) {
      final Statement statement=this.connection.createStatement();
      statement.addBatch("String_Node_Str" + this.prefix + "String_Node_Str");
      statement.executeBatch();
      statement.close();
    }
  }
 catch (  final Exception e) {
    e.printStackTrace();
  }
  final HashMap<Integer,Plot> plots=new HashMap<>();
  Statement stmt=null;
  try {
    Set<String> worlds=new HashSet<>();
    if (PlotMain.config.contains("String_Node_Str")) {
      worlds=PlotMain.config.getConfigurationSection("String_Node_Str").getKeys(false);
    }
    final HashMap<String,UUID> uuids=new HashMap<String,UUID>();
    final HashMap<String,Integer> noExist=new HashMap<String,Integer>();
    stmt=this.connection.createStatement();
    ResultSet r=stmt.executeQuery("String_Node_Str" + this.prefix + "String_Node_Str");
    PlotId plot_id;
    int id;
    Plot p;
    String o;
    UUID user;
    while (r.next()) {
      plot_id=new PlotId(r.getInt("String_Node_Str"),r.getInt("String_Node_Str"));
      id=r.getInt("String_Node_Str");
      final String worldname=r.getString("String_Node_Str");
      if (!worlds.contains(worldname)) {
        if (noExist.containsKey(worldname)) {
          noExist.put(worldname,noExist.get(worldname) + 1);
        }
 else {
          noExist.put(worldname,1);
        }
      }
      o=r.getString("String_Node_Str");
      user=uuids.get(o);
      if (user == null) {
        user=UUID.fromString(o);
        uuids.put(o,user);
      }
      p=new Plot(plot_id,user,new ArrayList<UUID>(),new ArrayList<UUID>(),new ArrayList<UUID>(),"String_Node_Str",PlotHomePosition.DEFAULT,null,worldname,new boolean[]{false,false,false,false});
      plots.put(id,p);
    }
    r=stmt.executeQuery("String_Node_Str" + this.prefix + "String_Node_Str");
    while (r.next()) {
      id=r.getInt("String_Node_Str");
      o=r.getString("String_Node_Str");
      user=uuids.get(o);
      if (user == null) {
        user=UUID.fromString(o);
        uuids.put(o,user);
      }
      final Plot plot=plots.get(id);
      if (plot != null) {
        plot.addHelper(user);
      }
 else {
        PlotMain.sendConsoleSenderMessage("String_Node_Str" + id + "String_Node_Str");
      }
    }
    r=stmt.executeQuery("String_Node_Str" + this.prefix + "String_Node_Str");
    while (r.next()) {
      id=r.getInt("String_Node_Str");
      o=r.getString("String_Node_Str");
      user=uuids.get(o);
      if (user == null) {
        user=UUID.fromString(o);
        uuids.put(o,user);
      }
      final Plot plot=plots.get(id);
      if (plot != null) {
        plot.addTrusted(user);
      }
 else {
        PlotMain.sendConsoleSenderMessage("String_Node_Str" + id + "String_Node_Str");
      }
    }
    r=stmt.executeQuery("String_Node_Str" + this.prefix + "String_Node_Str");
    while (r.next()) {
      id=r.getInt("String_Node_Str");
      o=r.getString("String_Node_Str");
      user=uuids.get(o);
      if (user == null) {
        user=UUID.fromString(o);
        uuids.put(o,user);
      }
      final Plot plot=plots.get(id);
      if (plot != null) {
        plot.addDenied(user);
      }
 else {
        PlotMain.sendConsoleSenderMessage("String_Node_Str" + id + "String_Node_Str");
      }
    }
    r=stmt.executeQuery("String_Node_Str" + this.prefix + "String_Node_Str");
    while (r.next()) {
      id=r.getInt("String_Node_Str");
      final Plot plot=plots.get(id);
      if (plot != null) {
        final String b=r.getString("String_Node_Str");
        if (b != null) {
          for (          final Biome mybiome : Biome.values()) {
            if (mybiome.toString().equalsIgnoreCase(b)) {
              break;
            }
          }
        }
        final String alias=r.getString("String_Node_Str");
        if (alias != null) {
          plot.settings.setAlias(alias);
        }
        final String pos=r.getString("String_Node_Str");
        if (pos != null) {
          for (          final PlotHomePosition plotHomePosition : PlotHomePosition.values()) {
            if (plotHomePosition.isMatching(pos)) {
              if (plotHomePosition != PlotHomePosition.DEFAULT) {
                plot.settings.setPosition(plotHomePosition);
              }
              break;
            }
          }
        }
        final Integer m=r.getInt("String_Node_Str");
        if (m != null) {
          final boolean[] merged=new boolean[4];
          for (int i=0; i < 4; i++) {
            merged[3 - i]=((m) & (1 << i)) != 0;
          }
          plot.settings.setMerged(merged);
        }
 else {
          plot.settings.setMerged(new boolean[]{false,false,false,false});
        }
        String[] flags_string;
        final String myflags=r.getString("String_Node_Str");
        if (myflags == null) {
          flags_string=new String[]{};
        }
 else {
          if (myflags.length() > 0) {
            flags_string=myflags.split("String_Node_Str");
          }
 else {
            flags_string=new String[]{};
          }
        }
        final Set<Flag> flags=new HashSet<Flag>();
        boolean exception=false;
        for (        final String element : flags_string) {
          if (element.contains("String_Node_Str")) {
            final String[] split=element.split("String_Node_Str");
            try {
              flags.add(new Flag(FlagManager.getFlag(split[0],true),split[1].replaceAll("String_Node_Str","String_Node_Str").replaceAll("String_Node_Str","String_Node_Str")));
            }
 catch (            final Exception e) {
              e.printStackTrace();
              exception=true;
            }
          }
 else {
            flags.add(new Flag(FlagManager.getFlag(element,true),"String_Node_Str"));
          }
        }
        if (exception) {
          PlotMain.sendConsoleSenderMessage("String_Node_Str" + id + "String_Node_Str");
          setFlags(id,flags.toArray(new Flag[0]));
        }
        plot.settings.flags=flags;
      }
 else {
        PlotMain.sendConsoleSenderMessage("String_Node_Str" + id + "String_Node_Str");
      }
    }
    stmt.close();
    for (    final Plot plot : plots.values()) {
      final String world=plot.world;
      if (!newplots.containsKey(world)) {
        newplots.put(world,new HashMap<PlotId,Plot>());
      }
      newplots.get(world).put(plot.id,plot);
    }
    boolean invalidPlot=false;
    for (    final String worldname : noExist.keySet()) {
      invalidPlot=true;
      PlotMain.sendConsoleSenderMessage("String_Node_Str" + noExist.get(worldname) + "String_Node_Str"+ worldname+ "String_Node_Str");
    }
    if (invalidPlot) {
      PlotMain.sendConsoleSenderMessage("String_Node_Str");
    }
  }
 catch (  final SQLException e) {
    PlotMain.sendConsoleSenderMessage("String_Node_Str" + "String_Node_Str");
    e.printStackTrace();
  }
  return newplots;
}