aboutsummaryrefslogtreecommitdiffstats
path: root/ardor3d-awt
diff options
context:
space:
mode:
authorJulien Gouesse <[email protected]>2014-09-24 23:27:40 +0200
committerJulien Gouesse <[email protected]>2014-09-24 23:27:40 +0200
commitf38dd328528849161455361c0ed0b2214634f98f (patch)
treed4496008e054ee3eec0b320f6a1251eb2fb05c75 /ardor3d-awt
parentfd1fca3240bca358b2f4e18fbcb6f4393318727d (diff)
Stops using Guava to create the lists, the sets and the maps except when it is really necessary
Diffstat (limited to 'ardor3d-awt')
-rw-r--r--ardor3d-awt/src/main/java/com/ardor3d/image/util/awt/AWTImageLoader.java4
-rw-r--r--ardor3d-awt/src/main/java/com/ardor3d/image/util/awt/AWTImageUtil.java4
-rw-r--r--ardor3d-awt/src/main/java/com/ardor3d/input/awt/AwtMouseWrapper.java6
3 files changed, 6 insertions, 8 deletions
diff --git a/ardor3d-awt/src/main/java/com/ardor3d/image/util/awt/AWTImageLoader.java b/ardor3d-awt/src/main/java/com/ardor3d/image/util/awt/AWTImageLoader.java
index 9835bb4..34f0991 100644
--- a/ardor3d-awt/src/main/java/com/ardor3d/image/util/awt/AWTImageLoader.java
+++ b/ardor3d-awt/src/main/java/com/ardor3d/image/util/awt/AWTImageLoader.java
@@ -19,6 +19,7 @@ import java.awt.image.renderable.RenderableImage;
import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteBuffer;
+import java.util.ArrayList;
import java.util.List;
import java.util.logging.Logger;
@@ -31,7 +32,6 @@ import com.ardor3d.image.util.ImageLoader;
import com.ardor3d.image.util.ImageLoaderUtil;
import com.ardor3d.renderer.state.TextureState;
import com.ardor3d.util.geom.BufferUtils;
-import com.google.common.collect.Lists;
/**
* Image loader that makes use of AWT's ImageIO to load image file data.
@@ -49,7 +49,7 @@ public class AWTImageLoader implements ImageLoader {
public static void registerLoader() {
if (supportedFormats == null) {
- final List<String> formats = Lists.newArrayList();
+ final List<String> formats = new ArrayList<String>();
for (String format : ImageIO.getReaderFormatNames()) {
format = "." + format.toUpperCase();
if (!formats.contains(format)) {
diff --git a/ardor3d-awt/src/main/java/com/ardor3d/image/util/awt/AWTImageUtil.java b/ardor3d-awt/src/main/java/com/ardor3d/image/util/awt/AWTImageUtil.java
index ef417be..076def2 100644
--- a/ardor3d-awt/src/main/java/com/ardor3d/image/util/awt/AWTImageUtil.java
+++ b/ardor3d-awt/src/main/java/com/ardor3d/image/util/awt/AWTImageUtil.java
@@ -13,11 +13,11 @@ package com.ardor3d.image.util.awt;
import java.awt.Color;
import java.awt.image.BufferedImage;
import java.nio.ByteBuffer;
+import java.util.ArrayList;
import java.util.List;
import com.ardor3d.image.Image;
import com.ardor3d.image.PixelDataType;
-import com.google.common.collect.Lists;
/**
* Utility methods for converting Ardor3D Images to AWT BufferedImages.
@@ -63,7 +63,7 @@ public abstract class AWTImageUtil {
final int width = input.getWidth(), height = input.getHeight();
// create our return list
- final List<BufferedImage> rVal = Lists.newArrayList();
+ final List<BufferedImage> rVal = new ArrayList<BufferedImage>();
// Calculate our modulation or "tint" values per channel
final double tRed = tint != null ? tint.getRed() / 255. : 1.0;
diff --git a/ardor3d-awt/src/main/java/com/ardor3d/input/awt/AwtMouseWrapper.java b/ardor3d-awt/src/main/java/com/ardor3d/input/awt/AwtMouseWrapper.java
index c2c2a91..fac2cba 100644
--- a/ardor3d-awt/src/main/java/com/ardor3d/input/awt/AwtMouseWrapper.java
+++ b/ardor3d-awt/src/main/java/com/ardor3d/input/awt/AwtMouseWrapper.java
@@ -32,8 +32,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.Lists;
-import com.google.common.collect.Maps;
import com.google.common.collect.Multiset;
import com.google.common.collect.PeekingIterator;
@@ -42,7 +40,7 @@ import com.google.common.collect.PeekingIterator;
*/
public class AwtMouseWrapper implements MouseWrapper, MouseListener, MouseWheelListener, MouseMotionListener {
@GuardedBy("this")
- protected final LinkedList<MouseState> _upcomingEvents = Lists.newLinkedList();
+ protected final LinkedList<MouseState> _upcomingEvents = new LinkedList<MouseState>();
@GuardedBy("this")
protected AwtMouseIterator _currentIterator = null;
@@ -57,7 +55,7 @@ public class AwtMouseWrapper implements MouseWrapper, MouseListener, MouseWheelL
protected final MouseManager _manager;
protected final Multiset<MouseButton> _clicks = EnumMultiset.create(MouseButton.class);
- protected final EnumMap<MouseButton, Long> _lastClickTime = Maps.newEnumMap(MouseButton.class);
+ protected final EnumMap<MouseButton, Long> _lastClickTime = new EnumMap<MouseButton, Long>(MouseButton.class);
protected final EnumSet<MouseButton> _clickArmed = EnumSet.noneOf(MouseButton.class);
protected int _ignoreX = Integer.MAX_VALUE;