Spring は初めてです。シングルトンである Spring Bean の countService があります。
public class CountService {
private int doCount() {
String commentsText = null;
List tranIds = new ArrayList();
int count = 0;
// ---business logic----
return count;
}
}
メソッド変数 commentsText,tranIds はスレッドセーフですか?よろしくお願いします