File.createTempFile in Java getting Incompatible type error
问题 Till now my code works fine where I am creating file in temporary directory and processing it. But now I am trying to provide specific directory where I actually want to create xml file. So in method createTmpXmlFile private static Path createTmpXmlFile(final String prefix) { try { log.info("Creating temporary file {}{}", prefix, XML_SUFFIX); return Files.createTempFile(Paths.get(gleifZipFile), prefix, XML_SUFFIX); } catch (IOException e) { throw new IllegalStateException("Could not create