mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user