summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-02-22 17:40:23 +0100
committerSven Gothel <[email protected]>2011-02-22 17:40:23 +0100
commit96a5e82f30e01daba2cf27dcd9cdaa30992d1975 (patch)
tree9787fc2efd5f93ca54d50fec58d9ef01e12e859b /src/java/com/jogamp/common
parentec4fcc9699db753a6d462c8c3df7ba71949c9fdd (diff)
Fix comment
Diffstat (limited to 'src/java/com/jogamp/common')
-rwxr-xr-xsrc/java/com/jogamp/common/nio/Buffers.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/com/jogamp/common/nio/Buffers.java b/src/java/com/jogamp/common/nio/Buffers.java
index 45cb5a6..abf6692 100755
--- a/src/java/com/jogamp/common/nio/Buffers.java
+++ b/src/java/com/jogamp/common/nio/Buffers.java
@@ -213,8 +213,8 @@ public class Buffers {
*/
public static <B extends Buffer> B slice(B buffer) {
if (buffer instanceof ByteBuffer) {
- ByteBuffer bb = (ByteBuffer) buffer;
- return (B) bb.slice().order(bb.order()); // bb can change byte order on slice and duplicate
+ final ByteBuffer bb = (ByteBuffer) buffer;
+ return (B) bb.slice().order(bb.order()); // slice and duplicate may change byte order
} else if (buffer instanceof IntBuffer) {
return (B) ((IntBuffer) buffer).slice();
} else if (buffer instanceof ShortBuffer) {