Skip to content

Commit

Permalink
Merge branch 'master' of github.com:dkpro/dkpro-core
Browse files Browse the repository at this point in the history
# By Manuel R. Ciosici
# Via Manuel R. Ciosici (1) and Richard Eckart de Castilho (1)
* 'master' of github.com:dkpro/dkpro-core:
  prevent the iterator from throwing a ConcurrentModificationExceptions
  • Loading branch information
reckart committed Aug 16, 2015
2 parents e2f514e + 39567d6 commit 0c9a88d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ void updateOffsets(
"No mapping found from ["+from+"] to ["+to+"] on ["+baseCas.hashCode()+"]"));
}

FSIndex<Annotation> idx = targetView.getAnnotationIndex();
FSIndex<Annotation> idx = targetView.getAnnotationIndex().withSnapshotIterators();
FSIterator<Annotation> it = idx.iterator();
TypeSystem typeSystem = targetView.getTypeSystem();
Type annotationType = typeSystem.getType(CAS.TYPE_NAME_ANNOTATION);
Expand Down

0 comments on commit 0c9a88d

Please sign in to comment.