diff --git a/enterprise/causal-clustering/src/main/java/org/neo4j/causalclustering/messaging/marshalling/ContentBuilder.java b/enterprise/causal-clustering/src/main/java/org/neo4j/causalclustering/messaging/marshalling/ContentBuilder.java index 996fc7db6c636..3b90835c6bd87 100644 --- a/enterprise/causal-clustering/src/main/java/org/neo4j/causalclustering/messaging/marshalling/ContentBuilder.java +++ b/enterprise/causal-clustering/src/main/java/org/neo4j/causalclustering/messaging/marshalling/ContentBuilder.java @@ -45,7 +45,7 @@ public static ContentBuilder unfinished( Function contentFunction ) public static ContentBuilder finished( C content ) { - return new ContentBuilder<>( c1 -> content, true ); + return new ContentBuilder<>( ignored -> content, true ); } private ContentBuilder( Function contentFunction, boolean isComplete ) @@ -63,18 +63,18 @@ public boolean isComplete() } /** Composes this with the given builder and updates {@link #isComplete()} with the provided builder. - * @param replicatedContentBuilder that will be combined with this builder + * @param contentBuilder that will be combined with this builder * @return The combined builder * @throws IllegalStateException if the current builder is already complete */ - public ContentBuilder combine( ContentBuilder replicatedContentBuilder ) + public ContentBuilder combine( ContentBuilder contentBuilder ) { if ( isComplete ) { throw new IllegalStateException( "This content builder has already completed and cannot be combined." ); } - contentFunction = contentFunction.compose( replicatedContentBuilder.contentFunction ); - isComplete = replicatedContentBuilder.isComplete; + contentFunction = contentFunction.compose( contentBuilder.contentFunction ); + isComplete = contentBuilder.isComplete; return this; }