jtulach commented on code in PR #9852:
URL: https://github.com/apache/netbeans/pull/9852#discussion_r4799091570
##########
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:
Let's just fix `@throws IllegaStateException` - if my memory from the end of
last century is correct - the whole `FileStateInvalidException` happens only
after deserialization and that's pretty obscure case. Maybe even not used these
days (when we mostly rely on `masterfs`) at all.
--
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