OriginalCompleteBeforeOriginalCompleteAfterBeforeAfterProjectCommitCompilationUnitLineNosNamesTemplateVariableToCodeBeforeRelevantImportsTemplateVariableToCodeAfterisRelevantisSafe
CompilationUnit unit=javaParser.parse(ParseStart.COMPILATION_UNIT,new StreamProvider(new FileInputStream(file))).getResult().get();CompilationUnit unit=javaParser.parse(ParseStart.COMPILATION_UNIT,new StreamProvider(Files.newInputStream(file))).getResult().get();new FileInputStream(file)Files.newInputStream(file)javaparser710ed4002cd644da01a080b11b5312a9a1f684a7com.github.javaparser.symbolsolver.Issue1485
_125
_225
_1file
_2file
TCIVarfile
  • java.nio.file.Files
  • java.io.FileInputStream
TCIVarfile
UsesTrue
try(FileInputStream inputStream=new FileInputStream(file))try(InputStream inputStream=Files.newInputStream(path))new FileInputStream(file)Files.newInputStream(file)sonarqube3c0dd8758d56ce8583a3a74c17a181e4cfe5918corg.sonar.scanner.scan.filesystem.MetadataGenerator
_160
_279
_1file
_2path
TCIVarfile
  • java.nio.file.Files
  • java.io.FileInputStream
TCIVarfile
UsesTrue