mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Some generic and other warning cleanups
This commit is contained in:
1 parent
02e6d581d3
commit
41c3846c51
16 files changed
+190
-200
No files matched your search
@@ -48,7 +48,7 @@ public final class UsernameCache {
|
||||
|
||||
/**
|
||||
* Set a player's current username
|
||||
*
|
||||
*
|
||||
* @param uuid
|
||||
* the player's {@link java.util.UUID UUID}
|
||||
* @param username
|
||||
@@ -67,7 +67,7 @@ public final class UsernameCache {
|
||||
|
||||
/**
|
||||
* Remove a player's username from the cache
|
||||
*
|
||||
*
|
||||
* @param uuid
|
||||
* the player's {@link java.util.UUID UUID}
|
||||
* @return if the cache contained the user
|
||||
@@ -81,7 +81,7 @@ public final class UsernameCache {
|
||||
save();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ public final class UsernameCache {
|
||||
* Get the player's last known username
|
||||
* <p>
|
||||
* <b>May be <code>null</code></b>
|
||||
*
|
||||
*
|
||||
* @param uuid
|
||||
* the player's {@link java.util.UUID UUID}
|
||||
* @return the player's last known username, or <code>null</code> if the
|
||||
@@ -104,7 +104,7 @@ public final class UsernameCache {
|
||||
|
||||
/**
|
||||
* Check if the cache contains the given player's username
|
||||
*
|
||||
*
|
||||
* @param uuid
|
||||
* the player's {@link java.util.UUID UUID}
|
||||
* @return if the cache contains a username for the given player
|
||||
@@ -117,7 +117,7 @@ public final class UsernameCache {
|
||||
|
||||
/**
|
||||
* Get an immutable copy of the cache's underlying map
|
||||
*
|
||||
*
|
||||
* @return the map
|
||||
*/
|
||||
public static Map<UUID, String> getMap()
|
||||
@@ -144,7 +144,7 @@ public final class UsernameCache {
|
||||
{
|
||||
|
||||
String json = Files.toString(saveFile, charset);
|
||||
Type type = new TypeToken<Map<UUID, String>>() {}.getType();
|
||||
Type type = new TypeToken<Map<UUID, String>>() { private static final long serialVersionUID = 1L; }.getType();
|
||||
|
||||
map = gson.fromJson(json, type);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user