[Nice-commit] Nice/src/bossa/util Location.java,1.30,1.31
Brought to you by:
bonniot
|
From: Artem Gr K. <ar...@us...> - 2005-04-03 03:05:23
|
Update of /cvsroot/nice/Nice/src/bossa/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6849/src/bossa/util Modified Files: Location.java Log Message: Use short source path in automatic assertion message. Index: Location.java =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/util/Location.java,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** Location.java 20 Feb 2005 22:09:40 -0000 1.30 --- Location.java 3 Apr 2005 03:05:13 -0000 1.31 *************** *** 88,91 **** --- 88,96 ---- } + public String toShortString() + { + return toString(); + } + /**************************************************************** * Setting source location in the generated bytecode. *************** *** 133,136 **** --- 138,146 ---- } + public String toShortString() + { + return (file == null) ? "" : file.getName(); + } + public void write(gnu.expr.Expression exp) { *************** *** 194,197 **** --- 204,212 ---- } + public String toShortString() + { + return super.toShortString() + ":" + startLine; + } + public String uniqueIdentifier(String root) { |