# HG changeset patch # User Robin Stumm # Date 1458148212 -3600 # Wed Mar 16 18:10:12 2016 +0100 # Node ID 989e7d4cc359d962f9fc79d723673369d6705e62 # Parent 5b73cf0d07951a9dc629fafd2a3f011133faf26d removed unnecessary keywords diff --git a/src/main/net/dermetfan/kryonet/box2d/multiplayer/WorldUpdater.java b/src/main/net/dermetfan/kryonet/box2d/multiplayer/WorldUpdater.java --- a/src/main/net/dermetfan/kryonet/box2d/multiplayer/WorldUpdater.java +++ b/src/main/net/dermetfan/kryonet/box2d/multiplayer/WorldUpdater.java @@ -244,30 +244,30 @@ /** listens to events during {@link #update(World, Update, Listener)} * @author dermetfan * @since 0.1.0 */ - public static interface Listener { + public interface Listener { /** called by {@link #setListener(Listener)} * @param updater the WorldUpdater this Listener is set on */ - public void setOn(WorldUpdater updater); + void setOn(WorldUpdater updater); /** called by {@link #setListener(Listener)} * @param updater the WorldUpdater this Listener is removed from */ - public void removedFrom(WorldUpdater updater); + void removedFrom(WorldUpdater updater); /** called the the very beginning of {@link #update(World, Update, Listener)} * @param world the World being updated * @param update the Update being applied */ - public void preUpdate(World world, Update update); + void preUpdate(World world, Update update); /** called at the very end of {@link #update(World, Update, Listener)} * @param world the World that was updated * @param update the Update that was applied */ - public void postUpdate(World world, Update update); + void postUpdate(World world, Update update); /** called if {@link #index} does not contain the object for the given hash * @param hash the hash not found in {@link #index} * @param update the Update requiring the given hash */ - public void objectNotFound(int hash, Update update); + void objectNotFound(int hash, Update update); /** Called if {@link #index} already contains an object for the hash given by the Creation. * If false is returned or no Listener is set on the WorldUpdater, the Creation is skipped. @@ -276,40 +276,40 @@ * @param object the object that already exists * @param creation the Creation that causes the incident * @return if the already existing object should be replaced */ - public boolean objectAlreadyExists(int hash, Object object, Creation creation); + boolean objectAlreadyExists(int hash, Object object, Creation creation); /** @param body the created Body * @param creation the BodyCreation the Body was created from */ - public void created(Body body, BodyCreation creation); + void created(Body body, BodyCreation creation); /** @param fixture the created Fixture * @param creation the FixtureCreation the Fixture was created from */ - public void created(Fixture fixture, FixtureCreation creation); + void created(Fixture fixture, FixtureCreation creation); /** @param joint the created Joint * @param creation the JointCreation the Joint was created from */ - public void created(Joint joint, JointCreation creation); + void created(Joint joint, JointCreation creation); /** @param object the object that was changed * @param change the Change applied the given Object */ - public void changed(T object, Change change); + void changed(T object, Change change); /** @param body the destroyed Body * @param destruction the Destruction because of which the Body was destroyed */ - public void destroyed(Body body, Destruction destruction); + void destroyed(Body body, Destruction destruction); /** @param fixture the destroyed Fixture * @param destruction the Destruction because of which the Fixture was destroyed */ - public void destroyed(Fixture fixture, Destruction destruction); + void destroyed(Fixture fixture, Destruction destruction); /** @param joint the destroyed Joint * @param destruction the Destruction because of which the Joint was destroyed */ - public void destroyed(Joint joint, Destruction destruction); + void destroyed(Joint joint, Destruction destruction); /** Does nothing. Extend this if you want to override only certain methods. * @author dermetfan * @since 0.1.0 */ - public static class Adapter implements Listener { + class Adapter implements Listener { @Override public void setOn(WorldUpdater updater) {}