Toggle navigation
Home
java.nio.file.Path to java.io.File
No. of Instances - 41
No. of Commits - 15
No. of Projects - {'alluxio', 'undertow', 'closure-compiler', 'neo4j', 'graylog2-server', 'flink', 'Chronicle-Queue'}
Hierarchy/Composition: SIBLING
Primitive Info: -
NameSpace: Jdk -> Jdk
Mapping:
Rename Variable
logFilePath
to
logFile
logFilePath
to
logFile
logFilePath
to
logFile
path
to
file
path
to
file
path
to
file
path
to
file
path
to
file
path
to
file
nodeFilePath
to
nodeIdFile
nonEmptyNodeIdPath
to
nonEmptyNodeIdFile
nonEmptyNodeIdPath
to
nonEmptyNodeIdFile
nonEmptyNodeIdPath
to
nonEmptyNodeIdFile
emptyNodeIdPath
to
emptyNodeIdFile
emptyNodeIdPath
to
emptyNodeIdFile
targetDirectory
to
storeDir
Add or Remove Method invocation
path.toString()
to
file.getPath()
path.toString()
to
file.getPath()
WebMonitorUtils.tryLoadWebContent(leaderRetriever,restAddressFuture,timeout,webUiDir.toFile())
to
WebMonitorUtils.tryLoadWebContent(leaderRetriever,restAddressFuture,timeout,webUiDir)
FileUtils.deleteDirectory(webUiDir.toFile())
to
FileUtils.deleteDirectory(webUiDir)
file
to
file.toFile()
next
to
toPath
getStorePath()
to
prepareStoreDir()
new GraphDatabaseFactory().newEmbeddedDatabaseBuilder(storeDir.toFile()).newGraphDatabase()
to
new GraphDatabaseFactory().newEmbeddedDatabaseBuilder(storeDir).newGraphDatabase()
roleFile.toAbsolutePath()
to
roleFile.getAbsolutePath()
Files.exists(roleFile)
to
fileSystem.fileExists(roleFile)
authFile.toAbsolutePath()
to
authFile.getAbsolutePath()
Files.exists(authFile)
to
fileSystem.fileExists(authFile)
Files.exists(authFile)
to
craschingFileSystem.fileExists(authFile)
AssertableLogProvider.inLog(FileUserRepository.class).error("Failed to read authentication file \"%s\" (%s)",authFile.toAbsolutePath(),"wrong number of line fields, expected 3, got 4 [line 2]")
to
AssertableLogProvider.inLog(FileUserRepository.class).error("Failed to read authentication file \"%s\" (%s)",authFile.getAbsolutePath(),"wrong number of line fields, expected 3, got 4 [line 2]")
target.directory("backupStore").toPath()
to
target.storeDir("backupStore")
new TestGraphDatabaseFactory().newEmbeddedDatabaseBuilder(backupStoreDir.toFile()).setConfig(OnlineBackupSettings.online_backup_enabled,Settings.FALSE)
to
new TestGraphDatabaseFactory().newEmbeddedDatabaseBuilder(backupStoreDir).setConfig(OnlineBackupSettings.online_backup_enabled,Settings.FALSE)
backupStoreDir.toFile()
to
backupStoreDir
targetDirectory.toFile()
to
storeDir
target.toFile()
to
target
FileUtils
to
outsideWorld.fileSystem()
Rename Method invocation
deletePathRecursively
to
deleteRecursively
Convert Class instance creation to method invocation
FileRoleRepository
to
assertExactly