标签:nbsp 这一 override vat weixin call() call publish ring
//Java8中,局部内部类访问的局部变量不必用final修饰,这一点和Java7是不一样的。
/**
* @param type 微博/微信 weixin weibo
* @param info
* @param contentMaps
* @return
*/
private StringBuffer publish(final String type, List<Authorization_info> infos, final List<Map<String, String>> contentMaps, final StringBuffer nameBuffer){
for (final Authorization_info info : infos) {
Future<StringBuffer> future = pool.submit(new Callable<StringBuffer>() {
@Override
public StringBuffer call() {
if (type.equals("weixin")) {
publishByWeixin(info, contentMaps, nameBuffer) ;
}
if (type.equals("weibo")) {
publishByWeibo(info, contentMaps, nameBuffer);
}
return nameBuffer;
}
});
}
return nameBuffer;
}
标签:nbsp 这一 override vat weixin call() call publish ring
原文地址:https://www.cnblogs.com/grow1016/p/9305265.html