testmycode / tmc-core

The common clientside implementation for tmc-clients. Used by the tmc-netbeans and the tmc-cli
3 stars 18 forks source link

Refactor String path -> Path path #70

Closed nygrenh closed 8 years ago

nygrenh commented 9 years ago

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

tieSari commented 9 years ago

I could take this. Sari R

jamo commented 9 years ago

You should be aware of the similar work at https://github.com/testmycode/tmc-netbeans/issues/111

tieSari commented 9 years ago

Ok! Sari

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.