testmycode / tmc-netbeans

Test My Code NetBeans plugin
GNU General Public License v2.0
19 stars 18 forks source link

Refactor String path -> Path path #111

Open Mession opened 9 years ago

Mession commented 9 years ago

Instead of strings for paths, we should prefer java.nio.file.Path.

nimirum commented 9 years ago

I can try to do this

jamo commented 9 years ago

You probably should be aware of the work done here: https://github.com/testmycode/tmc-core/issues/70 even though this work shouldn't collide.

ljleppan commented 9 years ago

NB: Prefer usage of java.nio instead of java.io.

That is, use Files.exists(Path path)* instead of path.toFile().exists() etc. and preferably replace any existing usage of the class File with Path.

*) http://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html.