classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches] Fix for StAX stream writer


From: Chris Burdess
Subject: Re: [cp-patches] Fix for StAX stream writer
Date: Sun, 6 Nov 2005 20:18:10 +0000

Mark Wielaard wrote:
+  private int count = 0;
[...]
+  protected String createPrefix()
+  {
+    return "ns" + (count++);
   }

Looks like this method can be private. Or are you thinking of an
subclass that overrides this method to provide different default
namespace prefixes? In that case please document that.

2005-11-06  Chris Burdess  <address@hidden>

* javax/xml/stream/XMLStreamWriterImpl.java: Ensure that generated prefixes do not accidentally clash, and provide documentation for new virtual methods. createPrefix (new method) signature changed to
        provide namespace URI for the benefit of subclasses.

--
犬 Chris Burdess
  "They that can give up essential liberty to obtain a little safety
  deserve neither liberty nor safety." - Benjamin Franklin

Attachment: patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]