Skip to content

Commit edf3791

Browse files
committed
Add checkstyle
1 parent f588006 commit edf3791

195 files changed

Lines changed: 1836 additions & 1394 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎AndroidAnnotations/androidannotations-api/src/main/java/org/androidannotations/annotations/AfterTextChange.java‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
*/
1616
package org.androidannotations.annotations;
1717

18-
import android.text.Editable;
19-
2018
import java.lang.annotation.ElementType;
2119
import java.lang.annotation.Retention;
2220
import java.lang.annotation.RetentionPolicy;
@@ -25,8 +23,8 @@
2523
/**
2624
* <p>
2725
* This annotation is intended to be used on methods to receive events defined
28-
* by {@link android.text.TextWatcher#afterTextChanged(Editable s)} after the
29-
* text is changed on the targeted TextView or subclass of TextView.
26+
* by {@link android.text.TextWatcher#afterTextChanged(android.text.Editable s)}
27+
* after the text is changed on the targeted TextView or subclass of TextView.
3028
* </p>
3129
* <p>
3230
* The annotation value should be one or several R.id.* fields that refers to

‎AndroidAnnotations/androidannotations-api/src/main/java/org/androidannotations/annotations/AfterViews.java‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
*/
1616
package org.androidannotations.annotations;
1717

18-
import android.app.Activity;
19-
2018
import java.lang.annotation.ElementType;
2119
import java.lang.annotation.Retention;
2220
import java.lang.annotation.RetentionPolicy;
@@ -25,7 +23,8 @@
2523
/**
2624
* <p>
2725
* Methods annotated with @{@link AfterViews} will be called after
28-
* {@link Activity#setContentView(int)} is called by the generated activity.
26+
* {@link android.app.Activity#setContentView(int) setContentView(int)} is
27+
* called by the generated activity.
2928
* </p>
3029
* <p>
3130
* This occurs AFTER <code>setContentView(View)</code> which is called at the

‎AndroidAnnotations/androidannotations-api/src/main/java/org/androidannotations/annotations/Background.java‎

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
import java.lang.annotation.Retention;
2020
import java.lang.annotation.RetentionPolicy;
2121
import java.lang.annotation.Target;
22-
import java.util.concurrent.Future;
23-
import java.util.concurrent.ScheduledThreadPoolExecutor;
2422

2523
/**
2624
* <p>
@@ -30,7 +28,9 @@
3028
* The annotated method MUST return void and MAY contain parameters.
3129
* </p>
3230
* <p>
33-
* The generated code is based on {@link org.androidannotations.api.BackgroundExecutor} methods.
31+
* The generated code is based on
32+
* {@link org.androidannotations.api.BackgroundExecutor BackgroundExecutor}
33+
* methods.
3434
* </p>
3535
*
3636
* <h2>Cancellation</h2>
@@ -66,20 +66,25 @@
6666
* <b>Note</b>: Cancellation may or may not be successful. If the task wasn't
6767
* executed yet, it will be removed from the pool. But it could fail if task has
6868
* already completed, has already been cancelled, or could not be cancelled for
69-
* some other reason. See {@link Future#cancel(boolean)} for more information.
69+
* some other reason. See {@link java.util.concurrent.Future#cancel(boolean)
70+
* Future#cancel(boolean)} for more information.
7071
* </p>
7172
*
7273
* <h2>Execution flow</h2>
7374
* <p>
74-
* By default, all tasks will be put in a {@link ScheduledThreadPoolExecutor}
75-
* with a core pool size of <code>2 * numberOfCpu</code>. Which means that
76-
* background methods will be executed in <b>PARALLEL</b>. You can change this
77-
* by calling <code>BackgroundExecutor.setExecutor(...)</code>.
75+
* By default, all tasks will be put in a
76+
* {@link java.util.concurrent.ScheduledThreadPoolExecutor
77+
* ScheduledThreadPoolExecutor} with a core pool size of
78+
* <code>2 * numberOfCpu</code>. Which means that background methods will be
79+
* executed in <b>PARALLEL</b>. You can change this by calling
80+
* <code>BackgroundExecutor.setExecutor(...)</code>.
7881
* </p>
7982
* <p>
8083
* If you want execute ALL background methods SEQUENTIALLY, the best way is to
81-
* change the executor of {@link org.androidannotations.api.BackgroundExecutor} to a
82-
* {@link ScheduledThreadPoolExecutor} with a core pool size of <code>1</code>.
84+
* change the executor of {@link org.androidannotations.api.BackgroundExecutor
85+
* BackgroundExecutor} to a
86+
* {@link java.util.concurrent.ScheduledThreadPoolExecutor
87+
* ScheduledThreadPoolExecutor} with a core pool size of <code>1</code>.
8388
* </p>
8489
* <p>
8590
* If you want execute some background methods SEQUENTIALLY, you should simply
@@ -146,6 +151,7 @@
146151
* <b>Example</b> :
147152
*
148153
* <blockquote>
154+
*
149155
* <pre>
150156
* &#064;EBean
151157
* public class MyBean {

‎AndroidAnnotations/androidannotations-api/src/main/java/org/androidannotations/annotations/EView.java‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,14 @@
1515
*/
1616
package org.androidannotations.annotations;
1717

18-
import android.view.ViewGroup;
19-
2018
import java.lang.annotation.ElementType;
2119
import java.lang.annotation.Retention;
2220
import java.lang.annotation.RetentionPolicy;
2321
import java.lang.annotation.Target;
2422

2523
/**
2624
* <p>
27-
* Should be used on {@link android.view.View} classes to enable usage of
25+
* Should be used on {@link android.view.View View} classes to enable usage of
2826
* AndroidAnnotations.
2927
* </p>
3028
* <p>
@@ -62,7 +60,7 @@
6260
*
6361
* @see AfterInject
6462
* @see AfterViews
65-
* @see ViewGroup
63+
* @see android.view.ViewGroup
6664
* @see <a
6765
* href="http://developer.android.com/guide/topics/ui/custom-components.html"
6866
* >How to build a custom component.</a>

‎AndroidAnnotations/androidannotations-api/src/main/java/org/androidannotations/annotations/Extra.java‎

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,16 @@
1515
*/
1616
package org.androidannotations.annotations;
1717

18-
import android.app.Activity;
19-
import android.os.Parcelable;
20-
21-
import java.io.Serializable;
2218
import java.lang.annotation.ElementType;
2319
import java.lang.annotation.Retention;
2420
import java.lang.annotation.RetentionPolicy;
2521
import java.lang.annotation.Target;
2622

2723
/**
2824
* <p>
29-
* Use on any native, {@link Parcelable} or {@link Serializable} field in an
30-
* {@link EActivity} annotated class to bind it with Android's extra.
25+
* Use on any native, {@link android.os.Parcelable Parcelable} or
26+
* {@link java.io.Serializable Serializable} field in an {@link EActivity}
27+
* annotated class to bind it with Android's extra.
3128
* </p>
3229
* <p>
3330
* The annotation value is the key used for extra. If not set, the field name
@@ -42,8 +39,8 @@
4239
* annotated method.
4340
* </p>
4441
* <p>
45-
* Calling {@link Activity#setIntent(android.content.Intent)} will automatically
46-
* update the annotated extras.
42+
* Calling {@link android.app.Activity#setIntent(android.content.Intent)
43+
* Activity#setIntent(Intent)} will automatically update the annotated extras.
4744
* </p>
4845
* <blockquote>
4946
*

‎AndroidAnnotations/androidannotations-api/src/main/java/org/androidannotations/annotations/FragmentArg.java‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,16 @@
1515
*/
1616
package org.androidannotations.annotations;
1717

18-
import android.os.Parcelable;
19-
20-
import java.io.Serializable;
2118
import java.lang.annotation.ElementType;
2219
import java.lang.annotation.Retention;
2320
import java.lang.annotation.RetentionPolicy;
2421
import java.lang.annotation.Target;
2522

2623
/**
2724
* <p>
28-
* Use on any native, {@link Parcelable} or {@link Serializable} field in an
29-
* {@link EFragment} annotated class to bind it with Android's arguments.
25+
* Use on any native, {@link android.os.Parcelable Parcelable} or
26+
* {@link java.io.Serializable Serializable} field in an {@link EFragment}
27+
* annotated class to bind it with Android's arguments.
3028
* </p>
3129
* <p>
3230
* The annotation value is the key used for argument. If not set, the field name

‎AndroidAnnotations/androidannotations-api/src/main/java/org/androidannotations/annotations/FromHtml.java‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,15 @@
1515
*/
1616
package org.androidannotations.annotations;
1717

18-
import org.androidannotations.annotations.res.HtmlRes;
19-
2018
import java.lang.annotation.ElementType;
2119
import java.lang.annotation.Retention;
2220
import java.lang.annotation.RetentionPolicy;
2321
import java.lang.annotation.Target;
2422

2523
/**
2624
* <p>
27-
* Use on a {@link android.widget.TextView} field or a
28-
* {@link android.widget.TextView} subclass field annotated with
25+
* Use on a {@link android.widget.TextView TextView} field or a
26+
* {@link android.widget.TextView TextView} subclass field annotated with
2927
* {@link ViewById} to inject text as HTML.
3028
* </p>
3129
* <p>
@@ -55,7 +53,7 @@
5553
* </blockquote>
5654
*
5755
* @see ViewById
58-
* @see HtmlRes
56+
* @see org.androidannotations.annotations.res.HtmlRes
5957
*/
6058
@Retention(RetentionPolicy.CLASS)
6159
@Target(ElementType.FIELD)

‎AndroidAnnotations/androidannotations-api/src/main/java/org/androidannotations/annotations/HttpsClient.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
@Retention(RetentionPolicy.CLASS)
9090
@Target(ElementType.FIELD)
9191
public @interface HttpsClient {
92-
public static final String DEFAULT_PASSWD = "changeit";
92+
String DEFAULT_PASSWD = "changeit";
9393

9494
int trustStore() default ResId.DEFAULT_VALUE;
9595

‎AndroidAnnotations/androidannotations-api/src/main/java/org/androidannotations/annotations/NoTitle.java‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
* <p>
2525
* Should be used on {@link EActivity} classes that must have no title.
2626
* </p>
27-
* <p>
28-
* <b>Note:</b> This annotation has been deprecated. Please use
29-
* <code>&#064;WindowFeature(Window.FEATURE_NO_TITLE})</code> instead
30-
* </p>
3127
*
3228
* @see WindowFeature
29+
*
30+
* @deprecated Please use
31+
* <code>&#064;WindowFeature(Window.FEATURE_NO_TITLE})</code>
32+
* instead
3333
*/
3434
@Deprecated
3535
@Retention(RetentionPolicy.CLASS)

‎AndroidAnnotations/androidannotations-api/src/main/java/org/androidannotations/annotations/OnActivityResult.java‎

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
*/
1616
package org.androidannotations.annotations;
1717

18-
import android.content.Intent;
19-
2018
import java.lang.annotation.ElementType;
2119
import java.lang.annotation.Retention;
2220
import java.lang.annotation.RetentionPolicy;
@@ -26,9 +24,9 @@
2624
* <p>
2725
* This annotation is intended to be used on methods to receive results from a
2826
* previously started activity using
29-
* {@link android.app.Activity#startActivityForResult(Intent, int)} or the
30-
* generated <code>IntentBuilder.startActivityForResult()</code> method of the
31-
* activity.
27+
* {@link android.app.Activity#startActivityForResult(android.content.Intent, int)
28+
* Activity#startActivityForResult(Intent, int)} or the generated
29+
* <code>IntentBuilder.startActivityForResult()</code> method of the activity.
3230
* </p>
3331
* <p>
3432
* The annotation value must be an integer constant that represents the
@@ -38,10 +36,13 @@
3836
* The method may have multiple parameter :
3937
* </p>
4038
* <ul>
41-
* <li>A {@link android.content.Intent} that contains data</li>
42-
* <li>An <code>int</code> or an {@link java.lang.Integer} to get the resultCode</li>
43-
* <li>Any native, {@link android.os.Parcelable} or {@link java.io.Serializable} parameter
44-
* annotated with {@link org.androidannotations.annotations.OnActivityResult.Extra} to get an object put in the extras of the intent.</li>
39+
* <li>A {@link android.content.Intent Intent} that contains data</li>
40+
* <li>An <code>int</code> or an {@link java.lang.Integer Integer} to get the
41+
* resultCode</li>
42+
* <li>Any native, {@link android.os.Parcelable Parcelable} or
43+
* {@link java.io.Serializable Serializable} parameter annotated with
44+
* {@link org.androidannotations.annotations.OnActivityResult.Extra
45+
* OnActivityResult.Extra} to get an object put in the extras of the intent.</li>
4546
* </ul>
4647
*
4748
* <blockquote>
@@ -69,8 +70,8 @@
6970
* </blockquote>
7071
*
7172
* @see EActivity
72-
* @see android.app.Activity#startActivityForResult(Intent, int)
73-
* @see android.app.Activity#onActivityResult(int, int, Intent)
73+
* @see android.app.Activity#startActivityForResult(android.content.Intent, int)
74+
* @see android.app.Activity#onActivityResult(int, int, android.content.Intent)
7475
*/
7576

7677
@Retention(RetentionPolicy.CLASS)
@@ -81,12 +82,13 @@
8182

8283
/**
8384
* <p>
84-
* Use on any native, {@link android.os.Parcelable} or {@link java.io.Serializable} parameter of an
85-
* {@link OnActivityResult} annotated method to bind it with the value from the Intent.
85+
* Use on any native, {@link android.os.Parcelable} or
86+
* {@link java.io.Serializable} parameter of an {@link OnActivityResult}
87+
* annotated method to bind it with the value from the Intent.
8688
* </p>
8789
* <p>
88-
* The annotation value is the key used for the result data. If not set, the field name
89-
* will be used as the key.
90+
* The annotation value is the key used for the result data. If not set, the
91+
* field name will be used as the key.
9092
* </p>
9193
*
9294
* <blockquote>
@@ -97,19 +99,20 @@
9799
* &#064;OnActivityResult(REQUEST_CODE)
98100
* void onResult(int resultCode, Intent data, <b>@Extra String value</b>) {
99101
* }
100-
*
102+
*
101103
* &#064;OnActivityResult(REQUEST_CODE)
102104
* void onResult(int resultCode, <b>@Extra(value = "key") String value</b>) {
103105
* }
104-
*
106+
*
105107
* &#064;OnActivityResult(REQUEST_CODE)
106108
* void onResult(<b>@Extra String strVal</b>, <b>@Extra int intVal</b>) {
107109
* }
108110
* </pre>
109111
*
110112
* </blockquote>
111113
*
112-
* @see android.app.Activity#onActivityResult(int, int, Intent)
114+
* @see android.app.Activity#onActivityResult(int, int,
115+
* android.content.Intent)
113116
* @see OnActivityResult
114117
*/
115118

0 commit comments

Comments
 (0)