1 /* 2 IllegalThrows 3 illegalClassNames = (default)Error, RuntimeException, Throwable, java.lang.Error, \ 4 java.lang.RuntimeException, java.lang.Throwable 5 ignoredMethodNames = (default)finalize 6 ignoreOverriddenMethods = false 7 8 9 */ 10 11 package com.puppycrawl.tools.checkstyle.checks.coding.illegalthrows; 12 13 public class InputIllegalThrowsNotIgnoreOverriddenMethod 14 extends InputIllegalThrowsTestDefault 15 { 16 @Override // violation below, 'Throwing 'RuntimeException' is not allowed' 17 public void methodTwo() throws RuntimeException { 18 19 } 20 21 @Override // violation below, 'Throwing 'RuntimeException' is not allowed' 22 public java.lang.Throwable methodOne() throws RuntimeException { 23 return null; 24 } 25 }