Skip to content

Commit 3468f61

Browse files
committed
[java] Preventing modification of values supposed to be constants
1 parent 1de7164 commit 3468f61

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

java/client/src/org/openqa/selenium/remote/RemoteTags.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ private RemoteTags() {
2828
// Utility class
2929
}
3030

31-
public static BiConsumer<Span, Capabilities> CAPABILITIES = (span, caps) -> {
31+
public static final BiConsumer<Span, Capabilities> CAPABILITIES = (span, caps) -> {
3232
span.setAttribute("session.capabilities", String.valueOf(caps));
3333
};
3434

35-
public static BiConsumer<Span, SessionId> SESSION_ID = (span, id) -> {
35+
public static final BiConsumer<Span, SessionId> SESSION_ID = (span, id) -> {
3636
span.setAttribute("session.id", String.valueOf(id));
3737
};
3838

0 commit comments

Comments
 (0)