Skip to content

Commit 7969527

Browse files
committed
Cleanup constants: Remove unused ones and prefix each with its class
1 parent 18d32a5 commit 7969527

2 files changed

Lines changed: 25 additions & 27 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
jcenter()
77
}
88
dependencies {
9-
classpath 'com.android.tools.build:gradle:2.2.0-alpha6'
9+
classpath 'com.android.tools.build:gradle:2.2.0-beta1'
1010
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
1111
}
1212
}

library/src/main/java/com/proxerme/library/info/ProxerTag.java

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -13,36 +13,34 @@
1313
public class ProxerTag {
1414

1515
public static final int NEWS = 0;
16-
public static final int LOGIN = 1;
17-
public static final int LOGOUT = 2;
18-
public static final int USERINFO = 3;
19-
public static final int TOPTEN = 4;
20-
public static final int USER_MEDIA_LIST = 5;
21-
public static final int MEDIA_LIST = 6;
22-
public static final int MEDIA_SEARCH = 7;
23-
24-
public static final int INFO_ENTRY_CORE = 20;
25-
public static final int INFO_ENTRY_SYNONYM = 21;
26-
public static final int INFO_ENTRY_SEASON = 22;
27-
28-
public static final int MESSENGER_CONFERENCES = 30;
29-
public static final int MESSENGER_MESSAGES = 31;
30-
public static final int MESSENGER_SEND_MESSAGE = 32;
31-
public static final int MESSENGER_CONFERENCE_CONSTANTS = 33;
32-
public static final int MESSENGER_CONFERENCE_INFO = 34;
33-
34-
public static final int CONFERENCES = 100;
35-
public static final int CHAT = 101;
36-
public static final int SEND_MESSAGE = 102;
16+
17+
public static final int LOGIN = 10;
18+
public static final int LOGOUT = 11;
19+
20+
public static final int USER_INFO = 20;
21+
public static final int USER_TOPTEN = 21;
22+
public static final int USER_MEDIA_LIST = 22;
23+
24+
public static final int MEDIA_LIST = 30;
25+
public static final int MEDIA_SEARCH = 31;
26+
27+
public static final int INFO_ENTRY_CORE = 40;
28+
public static final int INFO_ENTRY_SYNONYM = 41;
29+
public static final int INFO_ENTRY_SEASON = 42;
30+
31+
public static final int MESSENGER_CONFERENCES = 50;
32+
public static final int MESSENGER_MESSAGES = 51;
33+
public static final int MESSENGER_SEND_MESSAGE = 52;
34+
public static final int MESSENGER_CONFERENCE_CONSTANTS = 53;
35+
public static final int MESSENGER_CONFERENCE_INFO = 54;
3736

3837
/**
3938
* An annotation representing all the different tags.
4039
*/
41-
@IntDef({LOGIN, NEWS, LOGOUT, USERINFO, TOPTEN, CONFERENCES, CHAT, SEND_MESSAGE,
42-
USER_MEDIA_LIST, MEDIA_LIST, MEDIA_SEARCH,
43-
INFO_ENTRY_CORE, INFO_ENTRY_SYNONYM, INFO_ENTRY_SEASON,
44-
MESSENGER_CONFERENCES, MESSENGER_MESSAGES, MESSENGER_SEND_MESSAGE,
45-
MESSENGER_CONFERENCE_CONSTANTS, MESSENGER_CONFERENCE_INFO})
40+
@IntDef({LOGIN, NEWS, LOGOUT, USER_INFO, USER_TOPTEN, USER_MEDIA_LIST, MEDIA_LIST, MEDIA_SEARCH,
41+
INFO_ENTRY_CORE, INFO_ENTRY_SYNONYM, INFO_ENTRY_SEASON, MESSENGER_CONFERENCES,
42+
MESSENGER_MESSAGES, MESSENGER_SEND_MESSAGE, MESSENGER_CONFERENCE_CONSTANTS,
43+
MESSENGER_CONFERENCE_INFO})
4644
@Retention(RetentionPolicy.SOURCE)
4745
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
4846
public @interface ConnectionTag {

0 commit comments

Comments
 (0)