[Generator-rt-devel] generator_runtime/src/java/generator/runtime/db EntityPeerActionListenerSet.ja
Brought to you by:
rickknowles
|
From: Rick K. <ric...@us...> - 2010-07-30 04:01:11
|
Update of /cvsroot/generator-rt/generator_runtime/src/java/generator/runtime/db In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv31528/src/java/generator/runtime/db Modified Files: EntityPeerActionListenerSet.java Log Message: fixed bad expansion of listener array Index: EntityPeerActionListenerSet.java =================================================================== RCS file: /cvsroot/generator-rt/generator_runtime/src/java/generator/runtime/db/EntityPeerActionListenerSet.java,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** EntityPeerActionListenerSet.java 21 Oct 2008 10:52:47 -0000 1.18 --- EntityPeerActionListenerSet.java 30 Jul 2010 04:01:00 -0000 1.19 *************** *** 105,109 **** synchronized (this) { if (executeOnLocalEvent) { ! if (this.localForegroundListeners.length <= (this.localForegroundListenerCount - 1)) { EntityPeerActionListener temp[] = this.localForegroundListeners; this.localForegroundListeners = new EntityPeerActionListener[(int) (temp.length * 1.75f)]; --- 105,109 ---- synchronized (this) { if (executeOnLocalEvent) { ! if (this.localForegroundListenerCount >= this.localForegroundListeners.length) { EntityPeerActionListener temp[] = this.localForegroundListeners; this.localForegroundListeners = new EntityPeerActionListener[(int) (temp.length * 1.75f)]; *************** *** 124,128 **** synchronized (this) { if (executeOnLocalEvent) { ! if (this.localBackgroundListeners.length <= (this.localBackgroundListenerCount - 1)) { EntityPeerActionListener temp[] = this.localBackgroundListeners; this.localBackgroundListeners = new EntityPeerActionListener[(int) (temp.length * 1.75f)]; --- 124,128 ---- synchronized (this) { if (executeOnLocalEvent) { ! if (this.localBackgroundListenerCount >= this.localBackgroundListeners.length) { EntityPeerActionListener temp[] = this.localBackgroundListeners; this.localBackgroundListeners = new EntityPeerActionListener[(int) (temp.length * 1.75f)]; *************** *** 138,142 **** private void addRemoteListener(EntityPeerActionListener listener) { ! if (this.remoteListeners.length <= (this.remoteListenerCount - 1)) { EntityPeerActionListener temp[] = this.remoteListeners; this.remoteListeners = new EntityPeerActionListener[(int) (temp.length * 1.75f)]; --- 138,142 ---- private void addRemoteListener(EntityPeerActionListener listener) { ! if (this.remoteListenerCount >= this.remoteListeners.length) { EntityPeerActionListener temp[] = this.remoteListeners; this.remoteListeners = new EntityPeerActionListener[(int) (temp.length * 1.75f)]; |