Skip to content

Commit 98c1352

Browse files
committed
Checkstyle
1 parent 80bcca7 commit 98c1352

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grpc-contrib/src/main/java/com/salesforce/grpc/contrib/interceptor/DefaultCallOptionsClientInterceptor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* </ul>
3535
*/
3636
public class DefaultCallOptionsClientInterceptor implements ClientInterceptor {
37-
private static final Field customOptionsField = getCustomOptionsField();
37+
private static final Field CUSTOM_OPTIONS_FIELD = getCustomOptionsField();
3838

3939
private static Field getCustomOptionsField() {
4040
try {
@@ -121,7 +121,7 @@ private <T> CallOptions patchOption(CallOptions baseOptions, Function<CallOption
121121
@SuppressWarnings("unchecked")
122122
private List<CallOptions.Key<Object>> customOptionKeys(CallOptions callOptions) {
123123
try {
124-
Object[][] customOptions = (Object[][]) customOptionsField.get(callOptions);
124+
Object[][] customOptions = (Object[][]) CUSTOM_OPTIONS_FIELD.get(callOptions);
125125
List<CallOptions.Key<Object>> keys = new ArrayList<>(customOptions.length);
126126
for (Object[] arr : customOptions) {
127127
keys.add((CallOptions.Key<Object>) arr[0]);

0 commit comments

Comments
 (0)