You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by GitBox <gi...@apache.org> on 2023/01/13 21:34:43 UTC

[GitHub] [commons-vfs] garydgregory commented on a diff in pull request #367: fixes #VFS-683: class loader thread safety

garydgregory commented on code in PR #367:
URL: https://github.com/apache/commons-vfs/pull/367#discussion_r1070090440


##########
commons-vfs2/src/main/java/org/apache/commons/vfs2/util/FileObjectUtils.java:
##########
@@ -82,8 +82,13 @@ public static AbstractFileObject getAbstractFileObject(final FileObject fileObje
      * @since 2.6.0
      */
     public static byte[] getContentAsByteArray(final FileObject file) throws IOException {
-        try (FileContent content = file.getContent()) {
-            return content.getByteArray();
+        synchronized(file.getFileSystem()) {

Review Comment:
   Fix formatting: `synchronized(` -> `synchronized (`



-- 
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: issues-unsubscribe@commons.apache.org

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