Code cleanup (#1461)
* Code cleanup * Fix flux tests * Fix checkstyle errors * Fix compile error
This commit is contained in:
@ -56,7 +56,7 @@ public class App {
|
||||
*
|
||||
* @param args command line args
|
||||
*/
|
||||
public static void main(String[] args) throws FileNotFoundException, IOException, ParseException {
|
||||
public static void main(String[] args) throws IOException, ParseException {
|
||||
var givenTime = 50; //50ms
|
||||
var toWin = 500; //points
|
||||
var pointsWon = 0;
|
||||
|
@ -38,7 +38,7 @@ public class Candy {
|
||||
Candy parent;
|
||||
String parentName;
|
||||
private int points;
|
||||
private Type type;
|
||||
private final Type type;
|
||||
|
||||
Candy(String name, String parentName, Type type, int points) {
|
||||
this.name = name;
|
||||
|
@ -77,7 +77,7 @@ public class CellPool {
|
||||
pointer++;
|
||||
}
|
||||
|
||||
Candy[] assignRandomCandytypes() throws FileNotFoundException, IOException, ParseException {
|
||||
Candy[] assignRandomCandytypes() throws IOException, ParseException {
|
||||
var jp = new JsonParser();
|
||||
jp.parse();
|
||||
var randomCode = new Candy[jp.candies.size() - 2]; //exclude generic types 'fruit' and 'candy'
|
||||
|
Reference in New Issue
Block a user