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

@ -85,7 +85,7 @@ public class WT5001_Example {
vol = mp3.getVolume();
System.out.println("The current volume is: " + vol);
} catch (IOException e) {
e.printStackTrace();
System.out.println(e.toString());
}
try {
@ -93,7 +93,7 @@ public class WT5001_Example {
ps = mp3.getPlayState();
System.out.println("The current play state is: " + ps);
} catch (IOException e) {
e.printStackTrace();
System.out.println(e.toString());
}
try {
@ -101,7 +101,7 @@ public class WT5001_Example {
numf = mp3.getNumFiles(upm_wt5001.WT5001.WT5001_PLAYSOURCE_T.SD);
System.out.println("The number of files on the SD card is: " + numf);
} catch (IOException e) {
e.printStackTrace();
System.out.println(e.toString());
}
try {
@ -109,7 +109,7 @@ public class WT5001_Example {
curf = mp3.getCurrentFile();
System.out.println("The current file is: " + curf);
} catch (IOException e) {
e.printStackTrace();
System.out.println(e.toString());
}
int year[] = new int[1];