Skip to content

Commit 289d90a

Browse files
sbapatneozwu
authored andcommitted
The fields should be final for safe publication/thread safety.
I did not see any reasons for these private fields to be non-final ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=148072821
1 parent 45004b8 commit 289d90a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

google-api-client/src/main/java/com/google/api/client/googleapis/services/AbstractGoogleClient.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import com.google.api.client.util.ObjectParser;
2121
import com.google.api.client.util.Preconditions;
2222
import com.google.api.client.util.Strings;
23-
2423
import java.io.IOException;
2524
import java.util.logging.Logger;
2625

@@ -63,10 +62,10 @@ public abstract class AbstractGoogleClient {
6362
private final ObjectParser objectParser;
6463

6564
/** Whether discovery pattern checks should be suppressed on required parameters. */
66-
private boolean suppressPatternChecks;
65+
private final boolean suppressPatternChecks;
6766

6867
/** Whether discovery required parameter checks should be suppressed. */
69-
private boolean suppressRequiredParameterChecks;
68+
private final boolean suppressRequiredParameterChecks;
7069

7170
/**
7271
* @param builder builder

0 commit comments

Comments
 (0)