Author: alesj
Date: 2009-11-30 14:08:52 -0500 (Mon, 30 Nov 2009)
New Revision: 97184
Modified:
projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/bundle/ServiceRefDictionary.java
Log:
Use current size, it might change.
Modified:
projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/bundle/ServiceRefDictionary.java
===================================================================
---
projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/bundle/ServiceRefDictionary.java 2009-11-30
19:01:24 UTC (rev 97183)
+++
projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/bundle/ServiceRefDictionary.java 2009-11-30
19:08:52 UTC (rev 97184)
@@ -59,10 +59,11 @@
{
String[] keys = ref.getPropertyKeys();
int index = 0;
+ int size = size();
public boolean hasMoreElements()
{
- return index < size();
+ return index < size;
}
public String nextElement()
@@ -78,10 +79,11 @@
{
String[] keys = ref.getPropertyKeys();
int index = 0;
+ int size = size();
public boolean hasMoreElements()
{
- return index < size();
+ return index < size;
}
public Object nextElement()
Show replies by date