We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd28b92 commit 5bf4f5bCopy full SHA for 5bf4f5b
context/src/test/java/io/grpc/ContextTest.java
@@ -832,8 +832,7 @@ public String call() {
832
833
@Test
834
public void storageReturnsNullTest() throws Exception {
835
- Class<?> contextClass = Class.forName("io.grpc.Context");
836
- Field storage = contextClass.getDeclaredField("storage");
+ Field storage = Context.class.getDeclaredField("storage");
837
assertTrue(Modifier.isFinal(storage.getModifiers()));
838
// use reflection to forcibly change the storage object to a test object
839
storage.setAccessible(true);
0 commit comments