eppleton commented on code in PR #9852:
URL: https://github.com/apache/netbeans/pull/9852#discussion_r4782479145
##########
platform/openide.filesystems/src/org/openide/filesystems/FileObject.java:
##########
@@ -1258,6 +1284,22 @@ public final URL toURL() {
return computeURL();
}
+ /** Provides tight connection with {@link Path} concept. Each {@link
FileObject}
+ * is capable to represent itself as the Java's <em>file like
abstraction</em> -
+ * e.g. the {@link Path}. Such a path may represent use the underlaying
+ * implementation, if available, or it can be a <em>virtualized path
implementation</em>
+ * fully delegating its opertions back to {@code this} file object.
+ * <p>
+ * The implementation of this method delegates to {@link FileUtil#toPath}.
+ *
+ * @return non-{@code null} instance of path equivalent for {@code this}
file object
Review Comment:
`FileUtil.toPath` throws `IllegalStateException` when `getFileSystem()`
throws `FileStateInvalidException`. Since this method is meant to be the
prominent entry point, should that be documented with an `@throws` clause?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists