Skip to content

Commit

Permalink
Tiny code cleanup in RdfStream
Browse files Browse the repository at this point in the history
  • Loading branch information
ajs6f committed Oct 22, 2013
1 parent 2c48a72 commit b836596
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -16,6 +16,7 @@

package org.fcrepo.kernel.utils.iterators;

import static com.google.common.collect.Iterators.singletonIterator;
import static com.hp.hpl.jena.rdf.model.ModelFactory.createDefaultModel;
import static java.util.Collections.emptySet;

Expand Down Expand Up @@ -84,9 +85,7 @@ public RdfStream concat(final Iterator<? extends Triple> newTriples) {
* @return This object for continued use.
*/
public RdfStream concat(final Triple newTriple) {
triples =
Iterators.concat(Iterators.forArray(new Triple[] {newTriple}),
triples);
triples = Iterators.concat(singletonIterator(newTriple), triples);
return this;
}

Expand Down

0 comments on commit b836596

Please sign in to comment.