Overloaded methods were added to the FileObservable class to provide a Path object (vs the existing File object method signature). While you could technically just have called file.toPath(), a path based API is seems to be the favored approach moving forward, most likely due to..... the ability to finally effectively test a Java FileSystem without relying on the underlying platform running the tests! Google's excellent jimfs gives the power to do pure in-memory file based testing and make unit testing a breeze.
Overloaded methods were added to the
FileObservable
class to provide aPath
object (vs the existingFile
object method signature). While you could technically just have called file.toPath(), a path based API is seems to be the favored approach moving forward, most likely due to..... the ability to finally effectively test a Java FileSystem without relying on the underlying platform running the tests! Google's excellent jimfs gives the power to do pure in-memory file based testing and make unit testing a breeze.