diff options
author | Michael Bien <mbien@fh-landshut.de> | 2010-01-12 17:57:27 +0100 |
---|---|---|
committer | Michael Bien <mbien@fh-landshut.de> | 2010-01-12 17:57:27 +0100 |
commit | b138169c1f85a7914304ae793efb9cabfbfd5da2 (patch) | |
tree | 065d968fe603a9a55c33208cdac8183bde8336a8 /src/java/com/sun/gluegen/runtime/BufferFactory.java.javase | |
parent | 266ab5707d5f6b9e1cf935e6258badd6ba9f2639 (diff) |
fixed emitted code for buffer-array mixing.
removed workaround in BufferFactory since it is no longer needed.
small code cleanup (generator java 5 migration).
Diffstat (limited to 'src/java/com/sun/gluegen/runtime/BufferFactory.java.javase')
-rwxr-xr-x | src/java/com/sun/gluegen/runtime/BufferFactory.java.javase | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/com/sun/gluegen/runtime/BufferFactory.java.javase b/src/java/com/sun/gluegen/runtime/BufferFactory.java.javase index 1e660c1..cb8c770 100755 --- a/src/java/com/sun/gluegen/runtime/BufferFactory.java.javase +++ b/src/java/com/sun/gluegen/runtime/BufferFactory.java.javase @@ -81,7 +81,7 @@ public class BufferFactory { public in Buffer and not replicated in all subclasses. */ public static boolean isDirect(Object buf) { if (buf == null) { - return false; + return true; } if (buf instanceof ByteBuffer) { return ((ByteBuffer) buf).isDirect(); |