Minor changes.

- Replaced duplicate GameImage.process_sub() calls from related images with calling a single method, for easier editing.
- Suppress warnings from overwritten Slick2D classes.

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han
2015-02-16 01:24:22 -05:00
parent 66016160a4
commit 329d54c230
5 changed files with 53 additions and 40 deletions

View File

@@ -44,6 +44,7 @@ import org.newdawn.slick.util.Log;
* @author kevin
* @author Nathan Sweet <misc@n4te.com>
*/
@SuppressWarnings({"rawtypes", "unchecked"})
public class Music {
/** The music currently being played or null if none */
private static Music currentMusic;

View File

@@ -52,6 +52,7 @@ import org.newdawn.slick.util.ResourceLoader;
* @author Kevin Glass
* @author Rockstar setVolume cleanup
*/
@SuppressWarnings({"rawtypes", "unchecked", "unused"})
public class SoundStore {
/** The single instance of this class */
@@ -318,7 +319,8 @@ public class SoundStore {
inited = true;
AccessController.doPrivileged(new PrivilegedAction() {
public Object run() {
@Override
public Object run() {
try {
AL.create();
soundWorks = true;