diff options
author | sg215889 <[email protected]> | 2009-07-13 17:14:32 -0700 |
---|---|---|
committer | sg215889 <[email protected]> | 2009-07-13 17:14:32 -0700 |
commit | 27b11223399cba943018a2f18908c4e8e5696b8f (patch) | |
tree | 14274981480b4d368040ea49989e745bfe9d885c /src | |
parent | c19b868e5fbdd123477e13c8da6bc37ece1103ff (diff) |
Cleanup PointerBuffer identification
Diffstat (limited to 'src')
-rw-r--r-- | src/java/com/sun/gluegen/JavaType.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/java/com/sun/gluegen/JavaType.java b/src/java/com/sun/gluegen/JavaType.java index 5e30810..3e9a399 100644 --- a/src/java/com/sun/gluegen/JavaType.java +++ b/src/java/com/sun/gluegen/JavaType.java @@ -331,7 +331,8 @@ public class JavaType { } public boolean isNIOBuffer() { - return clazz != null && ((java.nio.Buffer.class).isAssignableFrom(clazz) || isNIOPointerBuffer()); + return clazz != null && ( (java.nio.Buffer.class).isAssignableFrom(clazz) || + (com.sun.gluegen.runtime.PointerBuffer.class).isAssignableFrom(clazz) ) ; } public boolean isNIOByteBuffer() { @@ -353,7 +354,7 @@ public class JavaType { public boolean isNIOPointerBuffer() { - return clazz == (com.sun.gluegen.runtime.PointerBuffer.class); + return (clazz == com.sun.gluegen.runtime.PointerBuffer.class); } public boolean isString() { |