luomuqinghan / weibo4j

Automatically exported from code.google.com/p/weibo4j
Other
0 stars 1 forks source link

可否按Java的规范来发布? #8

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
令人抓狂的发布方式

Original issue reported on code.google.com by sam...@gmail.com on 27 Nov 2011 at 10:33

GoogleCodeExporter commented 8 years ago
public class Weibo implements java.io.Serializable {
        public static HttpClient client = new HttpClient();
    public void setToken(String token) {
        client.setToken(token);
    }
}
public static HttpClient client = new HttpClient(); 
这个种方式好像不是线程安全的吧,希望能改进

Original comment by hucarrot...@gmail.com on 8 Dec 2011 at 4:22