/[classpath]/classpath/gnu/xml/dom/DomNode.java
ViewVC logotype

Diff of /classpath/gnu/xml/dom/DomNode.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.2.3 by gnu_andrew, Wed Feb 16 01:11:41 2005 UTC revision 1.1.2.4 by gnu_andrew, Mon Mar 28 18:47:52 2005 UTC
# Line 1686  public abstract class DomNode Line 1686  public abstract class DomNode
1686            {            {
1687              continue;              continue;
1688            }            }
1689          if (count < notificationSet.length)          if (count >= notificationSet.length)
1690            {            {
1691              notificationSet[count++] = rec;              // very simple growth algorithm
1692                int len = Math.max(notificationSet.length, 1);
1693                ListenerRecord[] tmp = new ListenerRecord[len * 2];
1694                System.arraycopy(notificationSet, 0, tmp, 0,
1695                                 notificationSet.length);
1696                notificationSet = tmp;
1697            }            }
1698          else          notificationSet[count++] = rec;
           // XXX fire up some cheap growth algorithm  
           throw new RuntimeException("Event notification set size exceeded");  
1699        }        }
1700    
1701      // Notify just those listeners      // Notify just those listeners

Legend:
Removed from v.1.1.2.3  
changed lines
  Added in v.1.1.2.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26