Code cleanup (#1461)

* Code cleanup

* Fix flux tests

* Fix checkstyle errors

* Fix compile error
This commit is contained in:
Ilkka Seppälä
2020-07-30 20:28:47 +03:00
committed by GitHub
parent 5381387026
commit 417f21ed3d
243 changed files with 1154 additions and 1162 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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'