java-examples: fix reported minor vulnerabilities

Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Mihai Tudor Panu
2018-10-11 20:06:13 -07:00
parent d5cb613ad0
commit 94be00a63d
7 changed files with 28 additions and 16 deletions

View File

@ -24,8 +24,11 @@
public class A110X_intr_Example {
public static int counter=0;
private static int counter=0;
public static void incrementCounter() {
counter++;
}
public static void main(String[] args) throws InterruptedException {
//! [Interesting]
// Instantiate an A110X sensor on digital pin D2
@ -52,6 +55,6 @@ class A110XISR implements Runnable {
super();
}
public void run(){
A110X_intr_Example.counter++;
A110X_intr_Example.incrementCounter();
}
}