Sorry for opposing so lately, but:

-  I don't see what bug this patch is supposed to fix
-  It seems that with this would also remove trples from members other
than the one at position 0. The class is very pporly documented, but
its quite clear that there is only one graph that can be modified in
the union, the one at position 0
-  having lastRetirned as instance field of the iterator is pointless
after this patch

reto

On Mon, May 17, 2010 at 1:29 PM,  <[email protected]> wrote:
> Author: mir
> Date: Mon May 17 11:29:21 2010
> New Revision: 945091
>
> URL: http://svn.apache.org/viewvc?rev=945091&view=rev
> Log:
> bug fixed (by andre)  in UnionGraph.remove()
>
> Modified:
>    
> incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.utils/src/main/java/org/apache/clerezza/rdf/utils/UnionMGraph.java
>
> Modified: 
> incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.utils/src/main/java/org/apache/clerezza/rdf/utils/UnionMGraph.java
> URL: 
> http://svn.apache.org/viewvc/incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.utils/src/main/java/org/apache/clerezza/rdf/utils/UnionMGraph.java?rev=945091&r1=945090&r2=945091&view=diff
> ==============================================================================
> --- 
> incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.utils/src/main/java/org/apache/clerezza/rdf/utils/UnionMGraph.java
>  (original)
> +++ 
> incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.utils/src/main/java/org/apache/clerezza/rdf/utils/UnionMGraph.java
>  Mon May 17 11:29:21 2010
> @@ -100,7 +100,7 @@ public class UnionMGraph extends Abstrac
>                                if (lastReturned == null) {
>                                        throw new IllegalStateException();
>                                }
> -                               UnionMGraph.this.remove(lastReturned);
> +                               currentBaseIter.remove();
>                                lastReturned = null;
>                        }
>                };
>
>
>

Reply via email to