[Ubermq-commits] jms/src/com/ubermq/kernel AbstractDatagram.java,1.12,1.13
Brought to you by:
jimmyp
From: <ji...@us...> - 2002-11-14 22:25:32
|
Update of /cvsroot/ubermq/jms/src/com/ubermq/kernel In directory usw-pr-cvs1:/tmp/cvs-serv11216/src/com/ubermq/kernel Modified Files: AbstractDatagram.java Log Message: better handling of null properties, also close() when already closed. Index: AbstractDatagram.java =================================================================== RCS file: /cvsroot/ubermq/jms/src/com/ubermq/kernel/AbstractDatagram.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** AbstractDatagram.java 11 Oct 2002 21:19:20 -0000 1.12 --- AbstractDatagram.java 14 Nov 2002 22:25:30 -0000 1.13 *************** *** 126,129 **** --- 126,130 ---- private static final byte TYPE_BYTE = 9; private static final byte TYPE_BOOLEAN = 10; + private static final byte TYPE_NULL = 11; /** *************** *** 206,209 **** --- 207,214 ---- } } + else if (data == null) + { + bb.put(TYPE_NULL); + } } *************** *** 268,271 **** --- 273,279 ---- case TYPE_BOOLEAN: value = bb.get() != 0 ? Boolean.TRUE : Boolean.FALSE; + break; + case TYPE_NULL: + value = null; break; } |