1 /* 2 com.puppycrawl.tools.checkstyle.checks.naming.MemberNameCheck 3 format = (default)^[a-z][a-zA-Z0-9]*$ 4 applyToPublic = (default)true 5 applyToProtected = (default)true 6 applyToPackage = (default)true 7 applyToPrivate = (default)true 8 9 10 */ 11 12 package com.puppycrawl.tools.checkstyle.grammar.java8; 13 import java.lang.annotation.ElementType; 14 import java.lang.annotation.Target; 15 16 17 18 public class InputAnnotations5 { 19 20 21 void monitorTemperature() throws @Critical Exception { } 22 void monitorTemperature2() throws NullPointerException, @Critical Exception { } 23 24 @Target(ElementType.TYPE_USE) 25 @interface Critical { 26 27 } 28 }