Skip to content

Commit 98b52d6

Browse files
committedDec 7, 2019
去除eclipse中的warnings
忽略eclipse中的隐藏文件 ‘
1 parent 430939f commit 98b52d6

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed
 

‎.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,7 @@ hs_err_pid*
2020
.DS_Store
2121
target/
2222

23+
# Eclispe project files
24+
.classpath
25+
.project
26+
.settings/

‎src/main/java/waditu/tushare/common/Utility.java

+10-1
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,17 @@ private Utility() {}
1515

1616
public final static String[] K_LABELS = {"D", "W", "M"};
1717
public final static String[] K_MIN_LABELS = {"5", "15", "30", "60"};
18-
public final static HashMap<String,String> K_TYPE = new HashMap<String, String>() {
18+
19+
@SuppressWarnings("serial")
20+
public final static HashMap<String,String> K_TYPE = new HashMap<String, String>() {
1921
{
2022
put("D", "akdaily");
2123
put("W", "akweekly");
2224
put("M", "akmonthly");
2325
}
2426
};
27+
28+
@SuppressWarnings("serial")
2529
// public final static String[] INDEX_LABELS = {"sh", "sz", "hs300", "sz50", "cyb", "zxb", "zx300", "zh500"};
2630
public final static HashMap<String,String> INDEX_LIST = new HashMap<String, String>() {
2731
{
@@ -35,6 +39,8 @@ private Utility() {}
3539
put("zh500", "sh000905");
3640
}
3741
};
42+
43+
@SuppressWarnings("serial")
3844
public final static HashMap<String,String> P_TYPE = new HashMap<String, String>() {
3945
{
4046
put("http", "http://");
@@ -43,6 +49,7 @@ private Utility() {}
4349
};
4450
public final static int[] PAGE_NUM = {38, 60, 80,100};
4551

52+
@SuppressWarnings("serial")
4653
public final static HashMap<String, String> DOMAINS = new HashMap<String, String>(){
4754
{
4855
put("sina", "sina.com.cn");
@@ -62,6 +69,8 @@ private Utility() {}
6269
put("mbox", "www.cbooo.cn");
6370
}
6471
};
72+
73+
@SuppressWarnings("serial")
6574
public final static HashMap<String, String> PAGES = new HashMap<String, String>(){
6675
{
6776
put("fd", "index.phtml");

0 commit comments

Comments
 (0)
Please sign in to comment.