From 96a5e82f30e01daba2cf27dcd9cdaa30992d1975 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 22 Feb 2011 17:40:23 +0100 Subject: Fix comment --- src/java/com/jogamp/common/nio/Buffers.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/java/com/jogamp') 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 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) { -- cgit v1.2.3