Cleanups, fixed isValid glitch

This commit is contained in:
Banks Troutman
2019-10-10 15:07:56 -04:00
parent 8748dd2503
commit d56a27c017
16 changed files with 77 additions and 157 deletions

View File

@@ -101,7 +101,7 @@ public class ShellExec {
* http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html?page=4
*/
@SuppressWarnings("WeakerAccess")
private class StreamGobbler extends Thread {
private static class StreamGobbler extends Thread {
private InputStream is;
private StringBuilder output;
private volatile boolean completed; // mark volatile to guarantee a thread safety

View File

@@ -26,7 +26,7 @@ public class Utilities {
}
public static List<Integer> getDigits(int num) {
List<Integer> digits = new ArrayList<Integer>();
List<Integer> digits = new ArrayList<>();
collectDigits(num, digits);
return digits;
}