I use the following code:
String workingDir = System.getProperty("user.dir") + File.separator;
new File(workingDir + "tempDir").mkdirs();
After Fortify's vulnerability scanning to obtain the following results: Input Validation and Representation.
how to avoid the problem arise?