You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by GitBox <gi...@apache.org> on 2021/06/06 11:05:16 UTC

[GitHub] [sling-org-apache-sling-feature] cziegeler commented on a change in pull request #26: SLING-10458 use NIO files

cziegeler commented on a change in pull request #26:
URL: https://github.com/apache/sling-org-apache-sling-feature/pull/26#discussion_r646115621



##########
File path: src/main/java/org/apache/sling/feature/io/artifacts/ArtifactHandler.java
##########
@@ -46,11 +47,24 @@ public ArtifactHandler(final String url, final URL localURL) {
      * @param file The file for the artifact
      * @throws MalformedURLException If the file name cannot be converted to a URL.
      * @since 1.1.0
+     * @deprecated Use {@link #ArtifactHandler(Path)} instead
      */
+    @Deprecated

Review comment:
       Why should we deprecate methods using File? Today java.io.File is not deprecated and used everywhere, so it seems convenient to have this




-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org