Skip to content

Commit bb9fdcf

Browse files
committed
Annotate with VisibleForTesting
1 parent 5f27364 commit bb9fdcf

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

google-cloud-spanner/src/main/java/com/google/cloud/spanner/XGoogSpannerRequestId.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,17 @@
1616

1717
package com.google.cloud.spanner;
1818

19+
import com.google.common.annotations.VisibleForTesting;
1920
import java.security.SecureRandom;
2021

2122
public class XGoogSpannerRequestId {
2223
// 1. Generate the random process Id singleton.
23-
public static String RAND_PROCESS_ID = XGoogSpannerRequestId.generateRandProcessId();
24-
public static long VERSION = 1; // The version of the specification being implemented.
24+
@VisibleForTesting
25+
static String RAND_PROCESS_ID = XGoogSpannerRequestId.generateRandProcessId();
26+
27+
@VisibleForTesting
28+
static long VERSION = 1; // The version of the specification being implemented.
29+
2530
private long nthClientId;
2631
private long nthChannelId;
2732
private long nthRequest;

0 commit comments

Comments
 (0)