Code hygiene. Not as pedantic as I'd like, but I couldn't resist the huge time
saver that is Eclipse's "Infer generic types" which leaves HashMap and ArrayList as the declared type where I would normally prefer to change those to Map and List and use Maps and Lists to instantiate them. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@593 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -195,7 +195,7 @@ public class MusicManager
|
||||
}
|
||||
String music = names[RandomUtil.getInt(names.length)];
|
||||
|
||||
Class playerClass = getMusicPlayerClass(music);
|
||||
Class<?> playerClass = getMusicPlayerClass(music);
|
||||
|
||||
// if we don't have a player for this song, play the next song
|
||||
if (playerClass == null) {
|
||||
@@ -246,7 +246,7 @@ public class MusicManager
|
||||
/**
|
||||
* Get the appropriate music player for the specified music file.
|
||||
*/
|
||||
protected static Class getMusicPlayerClass (String path)
|
||||
protected static Class<?> getMusicPlayerClass (String path)
|
||||
{
|
||||
path = path.toLowerCase();
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Sounds
|
||||
* a <code>sounds.properties</code> file in the
|
||||
* <code>com.threerings.happy.fun</code> package.
|
||||
*/
|
||||
protected static String getPackagePath (Class clazz)
|
||||
protected static String getPackagePath (Class<?> clazz)
|
||||
{
|
||||
return clazz.getPackage().getName().replace('.', '/') + "/";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user