Refactoring towards Java language evolution.

- use the diamond operator in a few places
- use of multi-catch in a few places
This commit is contained in:
Rodrigo Bonifacio
2017-06-15 11:48:49 -03:00
parent 18a64d1b30
commit 325070d711
9 changed files with 17 additions and 32 deletions
+1 -1
View File
@@ -161,7 +161,7 @@ public class LED {
return new String[]{ "led0", "led1" };
}
ArrayList<String> devs = new ArrayList<String>();
ArrayList<String> devs = new ArrayList<>();
File dir = new File("/sys/class/leds");
File[] files = dir.listFiles();
if (files != null) {