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  <[EMAIL PROTECTED]>

* 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

_______________________________________________
Classpath-patches mailing list
Classpath-patches@gnu.org
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to