diff options
author | Julien Gouesse <[email protected]> | 2014-09-24 23:27:40 +0200 |
---|---|---|
committer | Julien Gouesse <[email protected]> | 2014-09-24 23:27:40 +0200 |
commit | f38dd328528849161455361c0ed0b2214634f98f (patch) | |
tree | d4496008e054ee3eec0b320f6a1251eb2fb05c75 /ardor3d-swt | |
parent | fd1fca3240bca358b2f4e18fbcb6f4393318727d (diff) |
Stops using Guava to create the lists, the sets and the maps except when it is really necessary
Diffstat (limited to 'ardor3d-swt')
-rw-r--r-- | ardor3d-swt/src/main/java/com/ardor3d/image/util/SWTImageUtil.java | 4 | ||||
-rw-r--r-- | ardor3d-swt/src/main/java/com/ardor3d/input/swt/SwtMouseWrapper.java | 5 |
2 files changed, 4 insertions, 5 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 cb6348e..7ac9068 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 @@ -11,6 +11,7 @@ package com.ardor3d.image.util; import java.nio.ByteBuffer; +import java.util.ArrayList; import java.util.List; import org.eclipse.swt.graphics.Color; @@ -19,7 +20,6 @@ import org.eclipse.swt.graphics.PaletteData; import com.ardor3d.image.Image; import com.ardor3d.image.PixelDataType; -import com.google.common.collect.Lists; /** * Utility methods for converting Ardor3D Images to SWT ImageData. @@ -65,7 +65,7 @@ public abstract class SWTImageUtil { final int width = input.getWidth(), height = input.getHeight(); // create our return list - final List<ImageData> rVal = Lists.newArrayList(); + final List<ImageData> rVal = new ArrayList<ImageData>(); // 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/SwtMouseWrapper.java b/ardor3d-swt/src/main/java/com/ardor3d/input/swt/SwtMouseWrapper.java index 4067060..3b735eb 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 @@ -30,7 +30,6 @@ import com.ardor3d.input.MouseState; import com.ardor3d.input.MouseWrapper; import com.google.common.collect.AbstractIterator; import com.google.common.collect.EnumMultiset; -import com.google.common.collect.Maps; import com.google.common.collect.Multiset; import com.google.common.collect.PeekingIterator; @@ -51,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 = Maps.newEnumMap(MouseButton.class); + private final EnumMap<MouseButton, Long> _lastClickTime = new EnumMap<MouseButton, Long>(MouseButton.class); private final EnumSet<MouseButton> _clickArmed = EnumSet.noneOf(MouseButton.class); public SwtMouseWrapper(final Control control) { @@ -91,7 +90,7 @@ public class SwtMouseWrapper implements MouseWrapper, MouseListener, MouseMoveLi @Override public synchronized void mouseDoubleClick(final MouseEvent mouseEvent) { - // ignoring this. We'll handle (multi)click in a uniform way + // ignoring this. We'll handle (multi)click in a uniform way } @Override |