From 397dd744df82fce6b13130d243f60b67acc91523 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 18 Jun 2014 13:28:14 +0000 Subject: [PATCH] * clean up --- source/net/filebot/mac/xattr/XAttrUtil.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/net/filebot/mac/xattr/XAttrUtil.java b/source/net/filebot/mac/xattr/XAttrUtil.java index 49236541..e13ed37c 100644 --- a/source/net/filebot/mac/xattr/XAttrUtil.java +++ b/source/net/filebot/mac/xattr/XAttrUtil.java @@ -15,17 +15,15 @@ package net.filebot.mac.xattr; import java.nio.ByteBuffer; import java.nio.charset.Charset; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import com.sun.jna.Memory; -import com.sun.jna.Pointer; public class XAttrUtil { public static List listXAttr(String path) { // get required buffer size - long bufferLength = XAttr.INSTANCE.listxattr(path, Pointer.NULL, 0, 0); + long bufferLength = XAttr.INSTANCE.listxattr(path, null, 0, 0); if (bufferLength < 0) return null; @@ -44,7 +42,7 @@ public class XAttrUtil { public static String getXAttr(String path, String name) { // get required buffer size - long bufferLength = XAttr.INSTANCE.getxattr(path, name, Pointer.NULL, 0, 0, 0); + long bufferLength = XAttr.INSTANCE.getxattr(path, name, null, 0, 0, 0); if (bufferLength < 0) return null;