MCPcopy Create free account
hub / github.com/grpc/grpc-java / after

Method after

api/src/testFixtures/java/io/grpc/FlagResetRule.java:78–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 }
77
78 @Override
79 protected void after() {
80 RuntimeException toThrow = null;
81 while (!toRunAfter.isEmpty()) {
82 try {
83 toRunAfter.pop().run();
84 } catch (RuntimeException e) {
85 if (toThrow == null) {
86 toThrow = e;
87 } else {
88 toThrow.addSuppressed(e);
89 }
90 }
91 }
92 if (toThrow != null) {
93 throw toThrow;
94 }
95 }
96}

Callers

nothing calls this directly

Calls 2

runMethod · 0.65
isEmptyMethod · 0.45

Tested by

no test coverage detected