@@ -55,18 +55,18 @@ public class ElementReader {
5555 this .paramName = varName ;
5656 if (!contextType ) {
5757 readAnnotations (element , defaultType );
58- this . useValidation = useValidation ();
58+ useValidation = useValidation ();
5959 } else {
60- this . paramType = ParamType .CONTEXT ;
61- this . useValidation = false ;
60+ paramType = ParamType .CONTEXT ;
61+ useValidation = false ;
6262 }
6363 }
6464
6565 private boolean useValidation () {
6666 if (typeHandler != null ) {
6767 return false ;
6868 }
69- final var elementType = ctx .getTypeElement (rawType );
69+ TypeElement elementType = ctx .getTypeElement (rawType );
7070 return elementType != null && elementType .getAnnotation (Valid .class ) != null ;
7171 }
7272
@@ -75,33 +75,33 @@ private void readAnnotations(Element element, ParamType defaultType) {
7575 notNullKotlin = (element .getAnnotation (org .jetbrains .annotations .NotNull .class ) != null );
7676 //notNullJavax = (element.getAnnotation(javax.validation.constraints.NotNull.class) != null);
7777
78- final var defaultVal = element .getAnnotation (Default .class );
78+ Default defaultVal = element .getAnnotation (Default .class );
7979 if (defaultVal != null ) {
80- paramDefault = defaultVal .value ();
80+ this . paramDefault = defaultVal .value ();
8181 }
82- final var form = element .getAnnotation (Form .class );
82+ Form form = element .getAnnotation (Form .class );
8383 if (form != null ) {
8484 paramType = ParamType .FORM ;
8585 return ;
8686 }
87- final var beanParam = element .getAnnotation (BeanParam .class );
87+ BeanParam beanParam = element .getAnnotation (BeanParam .class );
8888 if (beanParam != null ) {
8989 this .paramType = ParamType .BEANPARAM ;
9090 return ;
9191 }
92- final var queryParam = element .getAnnotation (QueryParam .class );
92+ QueryParam queryParam = element .getAnnotation (QueryParam .class );
9393 if (queryParam != null ) {
9494 this .paramName = nameFrom (queryParam .value (), varName );
9595 this .paramType = ParamType .QUERYPARAM ;
9696 return ;
9797 }
98- final var formParam = element .getAnnotation (FormParam .class );
98+ FormParam formParam = element .getAnnotation (FormParam .class );
9999 if (formParam != null ) {
100100 this .paramName = nameFrom (formParam .value (), varName );
101101 this .paramType = ParamType .FORMPARAM ;
102102 return ;
103103 }
104- final var cookieParam = element .getAnnotation (Cookie .class );
104+ Cookie cookieParam = element .getAnnotation (Cookie .class );
105105 if (cookieParam != null ) {
106106 this .paramName = nameFrom (cookieParam .value (), varName );
107107 this .paramType = ParamType .COOKIE ;
0 commit comments