Added SuppressWarnings to classes using deprecated regenerateChunk

This commit is contained in:
tastybento 2018-08-14 19:09:14 -07:00
parent baf6571614
commit fc066a04a3
3 changed files with 7 additions and 4 deletions

View File

@ -21,6 +21,7 @@ import world.bentobox.bentobox.lists.Flags;
*
*/
public class CleanSuperFlatListener extends AbstractFlagListener {
@SuppressWarnings("deprecation")
@EventHandler(priority = EventPriority.LOW, ignoreCancelled = true)
public void onChunkLoad(ChunkLoadEvent e) {
BentoBox plugin = BentoBox.getInstance();

View File

@ -1,9 +1,10 @@
package world.bentobox.bentobox.managers.island;
import com.google.common.base.Preconditions;
import org.apache.commons.lang.Validate;
import com.google.common.collect.Table;
import com.google.common.collect.TreeBasedTable;
import org.apache.commons.lang.Validate;
import world.bentobox.bentobox.database.objects.Island;
/**
@ -34,7 +35,7 @@ public class IslandGrid {
grid.put(island.getMinX(), island.getMinZ(), new Cell(CellState.OCCUPIED, island));
return true;
}
/**
* Remove island from grid
* @param island - the island to remove
@ -51,7 +52,7 @@ public class IslandGrid {
}
return false;
}
/**
* Returns the island at the x,z location or null if there is none.
* This includes the full island space, not just the protected area.

View File

@ -21,6 +21,7 @@ public class DeleteIslandChunks {
* @param plugin - plugin object
* @param island - island to delete
*/
@SuppressWarnings("deprecation")
public DeleteIslandChunks(final BentoBox plugin, final Island island) {
// Fire event
IslandBaseEvent event = IslandEvent.builder().island(island).reason(Reason.DELETE).build();