forked from SteamWar/SteamWar
Format code
This commit is contained in:
@@ -70,7 +70,7 @@ public class RandomGenerator {
|
||||
}
|
||||
|
||||
public static <T> T generateRandom(Class<T> clazz) {
|
||||
if(clazz.isEnum()) {
|
||||
if (clazz.isEnum()) {
|
||||
return generateRandomEnum(clazz);
|
||||
} else {
|
||||
return (T) generators.get(clazz).apply(clazz);
|
||||
|
||||
Reference in New Issue
Block a user