* clean up
This commit is contained in:
parent
8e1ba28bbf
commit
397dd744df
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue