Skip to content

Commit 011530d

Browse files
committed
Fixed a comment error, because it's easy to cause trouble for code watcher
1 parent e644bcf commit 011530d

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

arouter-compiler/src/main/java/com/alibaba/android/arouter/compiler/processor/InterceptorProcessor.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

module-java/src/main/java/com/alibaba/android/arouter/demo/module1/TestInterceptor90.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
@Interceptor(priority = 90)
1919
public class TestInterceptor90 implements IInterceptor {
2020
/**
21-
* The operation of this tollgate.
21+
* The operation of this interceptor.
2222
*
2323
* @param postcard meta
2424
* @param callback cb

0 commit comments

Comments
 (0)