Skip to content

Commit

Permalink
[java] Preventing modification of values supposed to be constants
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Aug 18, 2020
1 parent 1de7164 commit 3468f61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions java/client/src/org/openqa/selenium/remote/RemoteTags.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ private RemoteTags() {
// Utility class
}

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

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

Expand Down

0 comments on commit 3468f61

Please sign in to comment.