Skip to content

Commit

Permalink
Optimize (apache#7843)
Browse files Browse the repository at this point in the history
  • Loading branch information
icankeep committed May 26, 2021
1 parent 03da6bc commit 79ebf89
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ public void test() throws Exception {
String key = method != null && method.length() > 0 ? type.getName() + "." + method : type.getName();
Field tracers = TraceFilter.class.getDeclaredField("TRACERS");
tracers.setAccessible(true);
ConcurrentHashMap<String, Set<Channel>> map = (ConcurrentHashMap<String, Set<Channel>>) tracers.get(new ConcurrentHashMap<String, Set<Channel>>());
ConcurrentHashMap<String, Set<Channel>> map =
(ConcurrentHashMap<String, Set<Channel>>) tracers.get(new ConcurrentHashMap<String, Set<Channel>>());

Set<Channel> channels = map.getOrDefault(key, null);
Assertions.assertNotNull(channels);
Expand Down

0 comments on commit 79ebf89

Please sign in to comment.