File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
library/src/main/java/com/alibaba/dcm/agent
tool/src/main/java/com/alibaba/dcm/tool Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 33import com .alibaba .dcm .DnsCache ;
44import com .alibaba .dcm .DnsCacheEntry ;
55import com .alibaba .dcm .DnsCacheManipulator ;
6+ import edu .umd .cs .findbugs .annotations .SuppressFBWarnings ;
67
78import javax .annotation .Nonnull ;
89import javax .annotation .Nullable ;
@@ -39,6 +40,7 @@ public class DcmAgent {
3940 /**
4041 * Entrance method of DCM Java Agent.
4142 */
43+ @ SuppressFBWarnings ("THROWS_METHOD_THROWS_CLAUSE_BASIC_EXCEPTION" )
4244 public static void agentmain (@ Nonnull String agentArgument ) throws Exception {
4345 logger .info (format ("%s: attached with agent argument: %s.%n" , DcmAgent .class .getName (), agentArgument ));
4446
@@ -280,6 +282,7 @@ private static synchronized void initAction2Method() throws NoSuchMethodExceptio
280282 * @since 1.6.0
281283 */
282284 @ SuppressWarnings ("unchecked" )
285+ @ SuppressFBWarnings ("THROWS_METHOD_THROWS_RUNTIMEEXCEPTION" )
283286 public static List <String > getActionList () {
284287 try {
285288 initAction2Method ();
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ public class DcmTool {
3333 /**
3434 * entry main method.
3535 */
36+ @ SuppressFBWarnings ("THROWS_METHOD_THROWS_CLAUSE_BASIC_EXCEPTION" )
3637 public static void main (@ Nonnull String [] args ) throws Exception {
3738 final CommandLine cmd = parseCommandLine (args );
3839
You can’t perform that action at this time.
0 commit comments