Force compile-time failures for the subtle changes done in the API

By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
Bukkit/Spigot
2011-03-30 00:25:59 +02:00
parent 2e99a0f17d
commit db5dfb3f10
5 changed files with 24 additions and 0 deletions

View File

@@ -75,4 +75,7 @@ public class VehicleListener implements Listener {
*/
public void onVehicleUpdate(VehicleUpdateEvent event) {
}
// Prevent compilation of old signatures TODO: Remove after 1.4
@Deprecated public final void onVehicleUpdate(VehicleEvent event) {}
}