From 07d98015fdd6802e48978038e70931bb17fa16b2 Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Sat, 13 Jun 2020 01:25:19 -0700 Subject: [PATCH] Fixed code formatting and removed fully qualified com.riiablo.codec.COF references --- core/src/com/riiablo/codec/COFD2.java | 28 +++++++++++++-------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/core/src/com/riiablo/codec/COFD2.java b/core/src/com/riiablo/codec/COFD2.java index 8d2aba06..b130f324 100644 --- a/core/src/com/riiablo/codec/COFD2.java +++ b/core/src/com/riiablo/codec/COFD2.java @@ -1,23 +1,21 @@ package com.riiablo.codec; +import java.io.IOException; +import java.io.InputStream; +import java.nio.ByteBuffer; +import java.nio.ByteOrder; +import org.apache.commons.collections4.Trie; +import org.apache.commons.collections4.trie.PatriciaTrie; +import org.apache.commons.io.IOUtils; +import org.apache.commons.io.input.BoundedInputStream; +import org.apache.commons.lang3.builder.ToStringBuilder; + import com.badlogic.gdx.Gdx; import com.badlogic.gdx.files.FileHandle; import com.badlogic.gdx.utils.Array; import com.badlogic.gdx.utils.GdxRuntimeException; import com.badlogic.gdx.utils.StreamUtils; -import org.apache.commons.collections4.Trie; -import org.apache.commons.collections4.trie.PatriciaTrie; -import org.apache.commons.io.IOUtils; -import org.apache.commons.io.input.BoundedInputStream; -import org.apache.commons.lang3.builder.ToStringBuilder; - -import java.io.IOException; -import java.io.InputStream; -import java.nio.ByteBuffer; -import java.nio.ByteOrder; - -import com.riiablo.codec.COF; import com.riiablo.util.BufferUtils; public class COFD2 { @@ -25,8 +23,8 @@ public class COFD2 { private static final boolean DEBUG = true; private static final boolean DEBUG_ENTRIES = DEBUG && false; - Array entries; - Trie trie; + Array entries; + Trie trie; private COFD2(Array entries) { this.entries = entries; @@ -41,7 +39,7 @@ public class COFD2 { return entries.size; } - public com.riiablo.codec.COF lookup(String cof) { + public COF lookup(String cof) { return trie.get(cof.toLowerCase()); }