Skip to content

Commit

Permalink
Fix javadoc issue
Browse files Browse the repository at this point in the history
  • Loading branch information
fkleedorfer committed Sep 13, 2024
1 parent a0ad8ae commit 6477790
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public TurtleFormatter( final FormattingStyle style ) {
Integer.MAX_VALUE
).thenComparing( Map.Entry::getKey );

objectOrder = Comparator.<RDFNode>comparingInt( object ->
objectOrder = Comparator.comparingInt( object ->
style.objectOrder.contains( object ) ?
style.objectOrder.indexOf( object ) :
Integer.MAX_VALUE
Expand Down Expand Up @@ -175,7 +175,6 @@ private void writeByteOrderMark( final OutputStream outputStream ) {
*
* @param model the model to serialize.
* @param outputStream the stream to write to
* @return the formatted TTL serialization of the model
*/
@Override
public void accept( final Model model, final OutputStream outputStream ) {
Expand Down Expand Up @@ -272,7 +271,7 @@ private State buildInitialState( final Model model, final OutputStream outputStr
// not a labeled blank node in the input: generate (and avoid collisions)
do {
s = style.anonymousNodeIdGenerator.apply(r, i++);
} while (currentState.identifiedAnonymousResources.values().contains(s) && blankNodeLabelsInInput.contains(s));
} while (currentState.identifiedAnonymousResources.containsValue(s) && blankNodeLabelsInInput.contains(s));
}
currentState = currentState.withIdentifiedAnonymousResource( r, s );
}
Expand All @@ -288,8 +287,7 @@ private State buildInitialState( final Model model, final OutputStream outputStr
* @return the set of anonymous resources that are referred to more than once
*/
private Set<Resource> anonymousResourcesThatNeedAnId( final Model model, State currentState) {
Set<Resource> identifiedResources = new HashSet<>();
identifiedResources.addAll(currentState.identifiedAnonymousResources.keySet()); //needed for cycle detection
Set<Resource> identifiedResources = new HashSet<>(currentState.identifiedAnonymousResources.keySet()); //needed for cycle detection
Set<Resource> candidates = model.listObjects().toList().stream()
.filter( RDFNode::isResource )
.map( RDFNode::asResource )
Expand Down

0 comments on commit 6477790

Please sign in to comment.