From tchemit@users.labs.libre-entreprise.org Mon Jun 15 08:43:40 2026
From: tchemit@users.labs.libre-entreprise.org
To: simexplorer-si-commits@list.forge.codelutin.com
Subject: [Simexplorer-si-commits] r421 -
	trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages
Date: Wed, 23 Jan 2008 10:32:09 +0100
Message-ID: <20080123093209.EF043461A92@labs.libre-entreprise.org>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============2731967084653864291=="

--===============2731967084653864291==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Author: tchemit
Date: 2008-01-23 09:32:08 +0000 (Wed, 23 Jan 2008)
New Revision: 421

Modified:
   trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages/=
ElementDetail.java
Log:
supression initializer inutile

il faut utiliser=20

result.toArray(new String[result.size()])

plutot que result.toArray(new String[0])

Modified: trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web=
/pages/ElementDetail.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages=
/ElementDetail.java	2008-01-22 18:53:44 UTC (rev 420)
+++ trunk/simexplorer-is-web/src/java/fr/cemagref/simexplorer/is/ui/web/pages=
/ElementDetail.java	2008-01-23 09:32:08 UTC (rev 421)
@@ -61,7 +61,7 @@
     }
=20
     public Object exportElement(String uuid, String version) throws Exceptio=
n {
-        StreamResponse response =3D null;
+        StreamResponse response;
=20
         ByteArrayOutputStream bos =3D new ByteArrayOutputStream();
         RemoteOutputStreamServer xmlRemoteOutputStream =3D new SimpleRemoteO=
utputStream(
@@ -91,7 +91,7 @@
         result.add(s2);
         result.add(s3);
         result.add("");
-        return result.toArray(new String[0]);
+        return result.toArray(new String[result.size()]);
     }
=20
     private String[] generateStringArray(String s1, String s2, String s3,
@@ -108,7 +108,7 @@
         sb.append(actionCaption);
         sb.append("</a>");
         result.add(sb.toString());
-        return result.toArray(new String[0]);
+        return result.toArray(new String[result.size()]);
     }
=20
     private TreeNode generateElement() {


--===============2731967084653864291==--


