From de51097447b669f090e6b4b72d0179ef220fa1e6 Mon Sep 17 00:00:00 2001 From: Martin Furmanski Date: Mon, 11 Jun 2018 10:32:18 +0200 Subject: [PATCH] Minor renames in content builder --- .../messaging/marshalling/ContentBuilder.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; }