mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 17:31:13 +03:00
java-examples: fix reported minor vulnerabilities
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user