]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
fix error with lists: listIdGenerator must not be a local variable, in order to retur...
authorPeter Herweg <pherweg@apache.org>
Mon, 9 Jan 2006 22:35:33 +0000 (22:35 +0000)
committerPeter Herweg <pherweg@apache.org>
Mon, 9 Jan 2006 22:35:33 +0000 (22:35 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@367420 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfList.java

index 01e063aa93f2c36262131ef14984cfbd66c45d60..81993b9733de6cb8b92cecb8c7a6ad2cdfed2498 100644 (file)
@@ -44,14 +44,13 @@ public class RtfList extends RtfContainer {
     private RtfListStyle defaultListStyle;
     private Integer listTemplateId = null;
     private Integer listId = null;
+    static private Random listIdGenerator = new Random(0);
 
     /** Create an RTF list as a child of given container with given attributes */
     RtfList(RtfContainer parent, Writer w, RtfAttributes attr) throws IOException {
         super((RtfContainer)parent, w, attr);
 
         //random number generator for ids
-        Date runTime = new Date();
-        Random listIdGenerator = new Random(0);
         listId = new Integer(listIdGenerator.nextInt());
         listTemplateId = new Integer(listIdGenerator.nextInt());