From 7469cedffa412ac37d5d601ef10e1918d8828232 Mon Sep 17 00:00:00 2001 From: josdem Date: Sat, 27 Apr 2024 12:44:45 -0400 Subject: [PATCH] Adding final keyword --- stream-merger/StreamMerger.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stream-merger/StreamMerger.java b/stream-merger/StreamMerger.java index d1d3588..216fcf7 100644 --- a/stream-merger/StreamMerger.java +++ b/stream-merger/StreamMerger.java @@ -3,8 +3,8 @@ import java.util.TreeSet; class InputStream implements Comparable { - private Integer streamId; - private Integer nextValue; + private final Integer streamId; + private final Integer nextValue; public InputStream(Integer streamId, Integer nextValue) { this.streamId = streamId;