diff options
author | Julien Gouesse <[email protected]> | 2016-06-30 22:36:24 +0200 |
---|---|---|
committer | Julien Gouesse <[email protected]> | 2016-06-30 22:36:24 +0200 |
commit | ced8e5e5a3439630b51a5aef53ef5dfbde69eb95 (patch) | |
tree | d09e41e49f4ad4a172a2cb4760d373aead49d4eb /ardor3d-swt/src | |
parent | 1257dbbf93986d1c2f21c0b1758efd8ffd110cf5 (diff) |
Switches from Java 1.6 to Java 1.7 and fixes numerous warnings
Diffstat (limited to 'ardor3d-swt/src')
3 files changed, 4 insertions, 4 deletions
diff --git a/ardor3d-swt/src/main/java/com/ardor3d/image/util/SWTImageUtil.java b/ardor3d-swt/src/main/java/com/ardor3d/image/util/SWTImageUtil.java index 7ac9068..24324a0 100644 --- a/ardor3d-swt/src/main/java/com/ardor3d/image/util/SWTImageUtil.java +++ b/ardor3d-swt/src/main/java/com/ardor3d/image/util/SWTImageUtil.java @@ -65,7 +65,7 @@ public abstract class SWTImageUtil { final int width = input.getWidth(), height = input.getHeight(); // create our return list - final List<ImageData> rVal = new ArrayList<ImageData>(); + final List<ImageData> rVal = new ArrayList<>(); // Calculate our modulation or "tint" values per channel final double tRed = tint != null ? tint.getRed() / 255. : 1.0; diff --git a/ardor3d-swt/src/main/java/com/ardor3d/input/swt/SwtKeyboardWrapper.java b/ardor3d-swt/src/main/java/com/ardor3d/input/swt/SwtKeyboardWrapper.java index 7996aa4..10554d3 100644 --- a/ardor3d-swt/src/main/java/com/ardor3d/input/swt/SwtKeyboardWrapper.java +++ b/ardor3d-swt/src/main/java/com/ardor3d/input/swt/SwtKeyboardWrapper.java @@ -42,7 +42,7 @@ public class SwtKeyboardWrapper implements KeyboardWrapper, KeyListener { private Key _lastKeyPressed = null; public SwtKeyboardWrapper(final Control control) { - _upcomingEvents = new LinkedList<KeyEvent>(); + _upcomingEvents = new LinkedList<>(); _control = checkNotNull(control, "control"); } diff --git a/ardor3d-swt/src/main/java/com/ardor3d/input/swt/SwtMouseWrapper.java b/ardor3d-swt/src/main/java/com/ardor3d/input/swt/SwtMouseWrapper.java index 2937ec1..442b8b1 100644 --- a/ardor3d-swt/src/main/java/com/ardor3d/input/swt/SwtMouseWrapper.java +++ b/ardor3d-swt/src/main/java/com/ardor3d/input/swt/SwtMouseWrapper.java @@ -39,7 +39,7 @@ import com.google.common.collect.PeekingIterator; @ThreadSafe public class SwtMouseWrapper implements MouseWrapper, MouseListener, MouseMoveListener, MouseWheelListener { @GuardedBy("this") - private final LinkedList<MouseState> _upcomingEvents = new LinkedList<MouseState>(); + private final LinkedList<MouseState> _upcomingEvents = new LinkedList<>(); private final Control _control; @@ -50,7 +50,7 @@ public class SwtMouseWrapper implements MouseWrapper, MouseListener, MouseMoveLi private MouseState _lastState = null; private final Multiset<MouseButton> _clicks = EnumMultiset.create(MouseButton.class); - private final EnumMap<MouseButton, Long> _lastClickTime = new EnumMap<MouseButton, Long>(MouseButton.class); + private final EnumMap<MouseButton, Long> _lastClickTime = new EnumMap<>(MouseButton.class); private final EnumSet<MouseButton> _clickArmed = EnumSet.noneOf(MouseButton.class); public SwtMouseWrapper(final Control control) { |