Update of /cvsroot/nice/Nice/src/bossa/syntax
In directory sc8-pr-cvs1:/tmp/cvs-serv9947/src/bossa/syntax
Modified Files:
Contract.java
Log Message:
More robust toString method.
Index: Contract.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/bossa/syntax/Contract.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Contract.java 28 Nov 2003 13:52:08 -0000 1.6
--- Contract.java 21 Dec 2003 15:07:48 -0000 1.7
***************
*** 125,131 ****
{
StringBuffer res = new StringBuffer();
! if (preExp.length > 0)
res.append(requireRepr.toString());
! if (postExp.length > 0)
res.append(ensureRepr.toString());
return res.toString();
--- 125,131 ----
{
StringBuffer res = new StringBuffer();
! if (preExp != null && preExp.length > 0)
res.append(requireRepr.toString());
! if (postExp != null && postExp.length > 0)
res.append(ensureRepr.toString());
return res.toString();
|