@@ -77,9 +77,9 @@ public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment
7777 }
7878
7979 /**
80- * Parse tollgate .
80+ * Parse interceptor .
8181 *
82- * @param elements elements of tollgate .
82+ * @param elements elements of interceptor .
8383 */
8484 private void parseInterceptors (Set <? extends Element > elements ) throws IOException {
8585 if (CollectionUtils .isNotEmpty (elements )) {
@@ -108,20 +108,20 @@ private void parseInterceptors(Set<? extends Element> elements) throws IOExcepti
108108 }
109109
110110 // Interface of ARouter.
111- TypeElement type_ITollgate = elementUtils .getTypeElement (IINTERCEPTOR );
112- TypeElement type_ITollgateGroup = elementUtils .getTypeElement (IINTERCEPTOR_GROUP );
111+ TypeElement type_IInterceptor = elementUtils .getTypeElement (IINTERCEPTOR );
112+ TypeElement type_IInterceptorGroup = elementUtils .getTypeElement (IINTERCEPTOR_GROUP );
113113
114114 /**
115115 * Build input type, format as :
116116 *
117- * ```Map<Integer, Class<? extends ITollgate >>```
117+ * ```Map<Integer, Class<? extends IInterceptor >>```
118118 */
119119 ParameterizedTypeName inputMapTypeOfTollgate = ParameterizedTypeName .get (
120120 ClassName .get (Map .class ),
121121 ClassName .get (Integer .class ),
122122 ParameterizedTypeName .get (
123123 ClassName .get (Class .class ),
124- WildcardTypeName .subtypeOf (ClassName .get (type_ITollgate ))
124+ WildcardTypeName .subtypeOf (ClassName .get (type_IInterceptor ))
125125 )
126126 );
127127
@@ -148,7 +148,7 @@ private void parseInterceptors(Set<? extends Element> elements) throws IOExcepti
148148 .addModifiers (PUBLIC )
149149 .addJavadoc (WARNING_TIPS )
150150 .addMethod (loadIntoMethodOfTollgateBuilder .build ())
151- .addSuperinterface (ClassName .get (type_ITollgateGroup ))
151+ .addSuperinterface (ClassName .get (type_IInterceptorGroup ))
152152 .build ()
153153 ).build ().writeTo (mFiler );
154154
0 commit comments