亚洲黄色一级毛片,www.亚洲精品,久久亚洲精品成人无码http://www.tkk7.com/sway/category/35106.html彪悍的人生不需要解釋,彪悍的代碼不需要注釋。zh-cnFri, 07 Nov 2008 08:54:30 GMTFri, 07 Nov 2008 08:54:30 GMT60checkstyle常用的輸出結果解釋http://www.tkk7.com/sway/archive/2008/11/06/238983.htmlKevin.ZhongKevin.ZhongThu, 06 Nov 2008 03:27:00 GMThttp://www.tkk7.com/sway/archive/2008/11/06/238983.htmlhttp://www.tkk7.com/sway/comments/238983.htmlhttp://www.tkk7.com/sway/archive/2008/11/06/238983.html#Feedback0http://www.tkk7.com/sway/comments/commentRss/238983.htmlhttp://www.tkk7.com/sway/services/trackbacks/238983.html 2“{” should be on the previous line “{” 應該位于前一行
3Methos is missing a javadoc comment方法前面缺少javadoc注釋
4Expected @throws tag for “Exception”在注釋中希望有@throws的說明
5“.” Is preceeded with whitespace “.” 前面不能有空格
6“.” Is followed by whitespace“.” 后面不能有空格
7“=” is not preceeded with whitespace“=” 前面缺少空格
8“=” is not followed with whitespace“=” 后面缺少空格
9“}” should be on the same line“}” 應該與下條語句位于同一行
10Unused @param tag for “unused”沒有參數“unused”,不需注釋
11Variable “CA” missing javadoc變量“CA”缺少javadoc注釋
12Line longer than 80characters行長度超過80
13Line contains a tab character行含有”tab” 字符
14Redundant “Public” modifier冗余的“public” modifier
15Final modifier out of order with the JSL suggestionFinal modifier的順序錯誤
16Avoid using the “.*” form of importImport格式避免使用“.*”
17Redundant import from the same package從同一個包中Import內容
18Unused import-java.util.listImport進來的java.util.list沒有被使用
19Duplicate import to line 13重復Import同一個內容
20Import from illegal package從非法包中 Import內容
21“while” construct must use “{}”“while” 語句缺少“{}”
22Variable “sTest1” must be private and have accessor method變量“sTest1”應該是private的,并且有調用它的方法
23Variable “ABC” must match pattern “^[a-z][a-zA-Z0-9]*$”變量“ABC”不符合命名規則“^[a-z][a-zA-Z0-9]*$”
24“(” is followed by whitespace“(” 后面不能有空格 25“)” is proceeded by whitespace“)” 前面不能有空格

Kevin.Zhong 2008-11-06 11:27 發表評論
]]>
利用Ecipse生成Javadoc亂碼解決方法http://www.tkk7.com/sway/archive/2008/11/05/238822.htmlKevin.ZhongKevin.ZhongWed, 05 Nov 2008 06:53:00 GMThttp://www.tkk7.com/sway/archive/2008/11/05/238822.htmlhttp://www.tkk7.com/sway/comments/238822.htmlhttp://www.tkk7.com/sway/archive/2008/11/05/238822.html#Feedback0http://www.tkk7.com/sway/comments/commentRss/238822.htmlhttp://www.tkk7.com/sway/services/trackbacks/238822.html 1)  -encoding charsetName
2) -charset charsetName

第一個參數表示javadoc 程序讀取java源文件時候應該采用什么編碼
第二個參數表示javadoc 程序寫html文件時采用的編碼形式,并會在HTML中加入如下標簽

 網管下載dl.bitscn.com

1 <! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" >
2 <!-- NewPage -->
3 < HTML >
4 < HEAD >
5 <!--  Generated by javadoc (build 1.5.0) on Thu Feb 01 21:10:10 CST 2007  --> 
6 <!-- -這下面的charset隨編碼的不同而不同,這里面為utf-8編碼-- -->
7 < META  http-equiv ="Content-Type"  content ="text/html; charset=utf-8" >

如果文件格式為UTF8格式的,可以采用如下形式進行Generate Javadoc:
javadoc  -encoding UTF-8 -charset UTF-8 <other params>

Kevin.Zhong 2008-11-05 14:53 發表評論
]]>
ArrayList 使用默認構造函數時,其預設置的數組大小是多少?http://www.tkk7.com/sway/archive/2008/10/10/233538.htmlKevin.ZhongKevin.ZhongFri, 10 Oct 2008 03:15:00 GMThttp://www.tkk7.com/sway/archive/2008/10/10/233538.htmlhttp://www.tkk7.com/sway/comments/233538.htmlhttp://www.tkk7.com/sway/archive/2008/10/10/233538.html#Feedback0http://www.tkk7.com/sway/comments/commentRss/233538.htmlhttp://www.tkk7.com/sway/services/trackbacks/233538.html
ArrayList 默認的大小為 10

ArrayList源代碼:

/**
* Constructs an empty list with an initial capacity of ten.
*/

public ArrayList() {

this(10);

}
HashSet默認大小與HashMap一樣 為 16 (因為HashSet就是使用HashMap的key來保存對象)

HashMap源代碼:

static final int DEFAULT_INITIAL_CAPACITY = 16;

/**
* Constructs an empty <tt>HashMap</tt> with the default initial capacity
* (16) and the default load factor (0.75).
*/

public HashMap() {

this.loadFactor = DEFAULT_LOAD_FACTOR;

threshold 
= (int)(DEFAULT_INITIAL_CAPACITY * DEFAULT_LOAD_FACTOR);

table 
= new Entry[DEFAULT_INITIAL_CAPACITY];

init();

}



Kevin.Zhong 2008-10-10 11:15 發表評論
]]>
使用Eclipse 3.3插件生成hashCode方法的陷阱 http://www.tkk7.com/sway/archive/2008/10/10/233528.htmlKevin.ZhongKevin.ZhongFri, 10 Oct 2008 02:52:00 GMThttp://www.tkk7.com/sway/archive/2008/10/10/233528.htmlhttp://www.tkk7.com/sway/comments/233528.htmlhttp://www.tkk7.com/sway/archive/2008/10/10/233528.html#Feedback0http://www.tkk7.com/sway/comments/commentRss/233528.htmlhttp://www.tkk7.com/sway/services/trackbacks/233528.html先來解釋一下hashCode這個方法的作用: - (摘自JDK docs)
Returns a hash code value for the object. This method is supported for the benefit of hashtables such as those provided by java.util.Hashtable.
從注釋上可以知道,hashCode可用于如Hashtable,HashMap這些集合對象,它通過hashCode對集合中的元素進行
散列處理,這樣在查找時,通過hashCode可以很迅速的進行對象的查找操作。

However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hashtables.
但是每位PG需要知道,如果不對Object的hashCode對象復寫,則其它生成規則是根據內部的指針地址來算出hashCode。(這一點大家得特別注意)

下面是eclipse生成代碼的一個示例:

public int hashCode() {

final int prime = 31;

int result = super.hashCode();

result 
= prime * result + ((name == null? 0 : name.hashCode());

return result;

}

它的問題就是,result中調用了 *super.hashCode()。*這么一來,同一個類被實例化多次后,雖然它們的名稱都相同
但生成的hashCode都不同,當然在那些集合類中使用返回的也會有問題了。



Kevin.Zhong 2008-10-10 10:52 發表評論
]]>
主站蜘蛛池模板: 国产亚洲真人做受在线观看| 免费观看毛片视频| 亚洲精品国产精品乱码不卡| 日韩欧美亚洲国产精品字幕久久久| 成人五级毛片免费播放| 456亚洲人成在线播放网站| 2021国产精品成人免费视频| 亚洲乱码一二三四区国产| 在线观看日本免费a∨视频| 国产成人亚洲精品| 在线免费视频一区二区| 亚洲av无码成人精品区一本二本 | 亚洲精品成人无限看| 国产一级一毛免费黄片| 亚洲成AV人片在线观看无码 | 女人18毛片水真多免费看| 中日韩亚洲人成无码网站| 蜜臀91精品国产免费观看| 国产亚洲精品美女久久久久久下载| 四虎影视永久免费观看网址| 免费一区二区三区在线视频| 亚洲综合在线另类色区奇米| 免费国产黄网站在线观看| 亚洲免费视频播放| 可以免费观看一级毛片黄a| 国产裸体美女永久免费无遮挡| 亚洲AV成人一区二区三区AV| 久久精品免费一区二区| 亚洲精品9999久久久久无码| 午夜亚洲国产成人不卡在线| 免费无码又爽又刺激网站 | 日韩精品视频免费观看| 一区二区三区视频免费观看| 亚洲成亚洲乱码一二三四区软件| 啦啦啦完整版免费视频在线观看| 亚洲真人无码永久在线观看| 精品国产亚洲一区二区在线观看| 日韩免费高清大片在线| 国产成人亚洲综合a∨| 亚洲成人在线网站| 国产成人在线免费观看|