From 701a2671e92bf0d535c4773d69c3c820029d5b5a Mon Sep 17 00:00:00 2001 From: hns Date: Thu, 28 Jun 2007 13:34:57 +0000 Subject: [PATCH] * Use zero length byte array for class comparison, tweak comments. --- helma/Image.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/helma/Image.js b/helma/Image.js index 94d90bde..9eb6ef38 100644 --- a/helma/Image.js +++ b/helma/Image.js @@ -8,10 +8,10 @@ * * Copyright 1998-2006 Helma Software. All Rights Reserved. * - * $RCSfile: helma.Image.js,v $ + * $RCSfile: Image.js,v $ * $Author: czv $ - * $Revision: 1.6 $ - * $Date: 2006/04/18 13:06:58 $ + * $Revision: 1.2 $ + * $Date: 2006/04/24 07:02:17 $ */ @@ -41,8 +41,8 @@ helma.Image.getInfo = function(arg) { var inp, result; var info = new Packages.helma.image.ImageInfo(); - // FIXME: we need a byte object for comparison - var b = java.lang.reflect.Array.newInstance(java.lang.Byte.TYPE, 1024); + // FIXME: we need a byte array for class comparison + var b = java.lang.reflect.Array.newInstance(java.lang.Byte.TYPE, 0); try { if (arg instanceof java.io.InputStream) {