Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/constraints
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv15623/src/net/sourceforge/bprocessor/model/constraints
Modified Files:
OffsetConstraint.java
Log Message:
generic get set methods
Index: OffsetConstraint.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/constraints/OffsetConstraint.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** OffsetConstraint.java 30 Oct 2006 10:58:36 -0000 1.6
--- OffsetConstraint.java 16 Apr 2007 15:55:43 -0000 1.7
***************
*** 182,186 ****
* @param attributes The attributes
*/
! public void setAttributes(List attributes) {
Iterator iter = attributes.iterator();
while (iter.hasNext()) {
--- 182,186 ----
* @param attributes The attributes
*/
! public void setAttributes(List<Attribute> attributes) {
Iterator iter = attributes.iterator();
while (iter.hasNext()) {
***************
*** 199,204 ****
* @return The attributes
*/
! public List getAttributes() {
! LinkedList attributes = new LinkedList();
Surface master = (Surface) getMaster();
Surface slave = (Surface) getSlave();
--- 199,204 ----
* @return The attributes
*/
! public List<Attribute> getAttributes() {
! LinkedList<Attribute> attributes = new LinkedList<Attribute>();
Surface master = (Surface) getMaster();
Surface slave = (Surface) getSlave();
|