import com.webobjects.foundation.NSArray;
import com.webobjects.foundation.NSMutableArray;
public class SPNoticeList {
private NSMutableArray<String> _notices;
public SPNoticeList() {
<BUG>_notices = new NSMutableArray<String>();
}</BUG>
public synchronized void addNotice(String error) {
_notices.addObject(error);
}

import com.webobjects.foundation.NSArray;
import com.webobjects.foundation.NSMutableArray;
public class SPNoticeList {
private NSMutableArray<String> _notices;
public SPNoticeList() {
_notices = new NSMutableArray<String>();
}
public synchronized boolean hasNotices() {
return _notices.count() > 0;
}
public synchronized void addNotice(String error) {
_notices.addObject(error);
}
