You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2bc991c
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: AndroidAnnotations/androidannotations/src/main/java/org/androidannotations/processing/AfterTextChangeProcessor.java
Copy file name to clipboardExpand all lines: AndroidAnnotations/androidannotations/src/main/java/org/androidannotations/processing/BeforeTextChangeProcessor.java
Copy file name to clipboardExpand all lines: AndroidAnnotations/androidannotations/src/main/java/org/androidannotations/processing/FragmentByTagProcessor.java
Copy file name to clipboardExpand all lines: AndroidAnnotations/androidannotations/src/main/java/org/androidannotations/processing/SharedPrefProcessor.java
Copy file name to clipboardExpand all lines: AndroidAnnotations/androidannotations/src/main/java/org/androidannotations/validation/AfterTextChangeValidator.java
if (parameterType.equals("android.text.Editable")) {
78
+
if (parameterType.equals(CanonicalNameConstants.EDITABLE)) {
78
79
if (editableParameterFound) {
79
80
annotationHelper.printAnnotationError(executableElement, "Unrecognized parameter declaration. you can declare only one parameter of type android.text.Editable");
80
81
valid.invalidate();
81
82
}
82
83
editableParameterFound = true;
83
84
continue;
84
85
}
85
-
if (parameterType.equals("android.widget.TextView")) {
86
+
if (parameterType.equals(CanonicalNameConstants.TEXT_VIEW)) {
86
87
if (textViewParameterFound) {
87
88
annotationHelper.printAnnotationError(executableElement, "Unrecognized parameter declaration. you can declare only one parameter of type android.widget.TextView");
Copy file name to clipboardExpand all lines: AndroidAnnotations/androidannotations/src/main/java/org/androidannotations/validation/BeforeTextChangeValidator.java
if (parameterType.equals("java.lang.CharSequence")) {
79
+
if (parameterType.equals(CanonicalNameConstants.CHAR_SEQUENCE)) {
79
80
if (charSequenceParameterFound) {
80
81
annotationHelper.printAnnotationError(executableElement, "Unrecognized parameter declaration. you can declare only one parameter of type java.lang.CharSequence");
81
82
valid.invalidate();
82
83
}
83
84
charSequenceParameterFound = true;
84
85
continue;
85
86
}
86
-
if (parameterType.equals("android.widget.TextView")) {
87
+
if (parameterType.equals(CanonicalNameConstants.TEXT_VIEW)) {
87
88
if (textViewParameterFound) {
88
89
annotationHelper.printAnnotationError(executableElement, "Unrecognized parameter declaration. you can declare only one parameter of type android.widget.TextView");
89
90
valid.invalidate();
90
91
}
91
92
textViewParameterFound = true;
92
93
continue;
93
94
}
94
-
if (parameter.asType().getKind() == TypeKind.INT || "java.lang.Integer".equals(parameterType)) {
95
+
if (parameter.asType().getKind() == TypeKind.INT || CanonicalNameConstants.INTEGER.equals(parameterType)) {
95
96
StringparameterName = parameter.toString();
96
97
if ("start".equals(parameterName) || "count".equals(parameterName) || "after".equals(parameterName)) {
Copy file name to clipboardExpand all lines: AndroidAnnotations/androidannotations/src/main/java/org/androidannotations/validation/TextChangeValidator.java
if (parameterType.equals("java.lang.CharSequence")) {
79
+
if (parameterType.equals(CanonicalNameConstants.CHAR_SEQUENCE)) {
79
80
if (charSequenceParameterFound) {
80
81
annotationHelper.printAnnotationError(executableElement, "Unrecognized parameter declaration. you can declare only one parameter of type java.lang.CharSequence");
81
82
valid.invalidate();
82
83
}
83
84
charSequenceParameterFound = true;
84
85
continue;
85
86
}
86
-
if (parameterType.equals("android.widget.TextView")) {
87
+
if (parameterType.equals(CanonicalNameConstants.TEXT_VIEW)) {
87
88
if (textViewParameterFound) {
88
89
annotationHelper.printAnnotationError(executableElement, "Unrecognized parameter declaration. you can declare only one parameter of type android.widget.TextView");
89
90
valid.invalidate();
90
91
}
91
92
textViewParameterFound = true;
92
93
continue;
93
94
}
94
-
if (parameter.asType().getKind() == TypeKind.INT || "java.lang.Integer".equals(parameterType)) {
95
+
if (parameter.asType().getKind() == TypeKind.INT || CanonicalNameConstants.INTEGER.equals(parameterType)) {
95
96
StringparameterName = parameter.toString();
96
97
if ("start".equals(parameterName) || "before".equals(parameterName) || "count".equals(parameterName)) {
0 commit comments