Skip to content

Commit a99ee39

Browse files
mark fields as final
1 parent 322f858 commit a99ee39

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

temporal-sdk/src/main/java/io/temporal/client/NamespaceInjectWorkflowServiceStubs.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,15 @@
3434
import java.util.function.Supplier;
3535
import javax.annotation.Nullable;
3636

37+
/** Inject the namespace into the gRPC header */
3738
class NamespaceInjectWorkflowServiceStubs implements WorkflowServiceStubs {
3839
private static Metadata.Key<String> TEMPORAL_NAMESPACE_HEADER_KEY =
3940
Metadata.Key.of("temporal-namespace", Metadata.ASCII_STRING_MARSHALLER);
4041
private final Metadata metadata;
41-
private WorkflowServiceStubs next;
42-
private String namespace;
42+
private final WorkflowServiceStubs next;
4343

4444
public NamespaceInjectWorkflowServiceStubs(WorkflowServiceStubs next, String namespace) {
4545
this.next = next;
46-
this.namespace = namespace;
4746
this.metadata = new Metadata();
4847
metadata.put(TEMPORAL_NAMESPACE_HEADER_KEY, namespace);
4948
}

0 commit comments

Comments
 (0)