1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

* clean up

This commit is contained in:
Reinhard Pointner 2014-06-18 13:28:14 +00:00
parent 8e1ba28bbf
commit 397dd744df

View File

@ -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<String> 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;