Skip to content

Commit 46a6cdf

Browse files
committed
test: suppress unused variable warning in orphan test
1 parent f81fc0b commit 46a6cdf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

core/src/test/java/io/grpc/internal/ManagedChannelOrphanWrapperTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ public void orphanedChannel_triggerWarningAndCoverage() {
148148
new ConcurrentHashMap<>();
149149

150150
// Create the wrapper but NEVER call shutdown
151+
@SuppressWarnings("UnusedVariable")
151152
ManagedChannelOrphanWrapper wrapper = new ManagedChannelOrphanWrapper(mc, refqueue, refs);
152153
wrapper = null; // Make it eligible for GC
153154

0 commit comments

Comments
 (0)