Mercurial > projects > dwt-linux
changeset 309:e0d7f76515af
Allow null args
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 20:57:41 +0200 |
parents | dc2ae028d2d8 |
children | 17757a168f51 |
files | dwt/widgets/TableItem.d |
diffstat | 1 files changed, 0 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/dwt/widgets/TableItem.d Fri Aug 22 21:36:05 2008 +0200 +++ b/dwt/widgets/TableItem.d Sun Aug 24 20:57:41 2008 +0200 @@ -1234,7 +1234,6 @@ * @param images the array of new images * * @exception IllegalArgumentException <ul> - * <li>ERROR_NULL_ARGUMENT - if the array of images is null</li> * <li>ERROR_INVALID_ARGUMENT - if one of the images has been disposed</li> * </ul> * @exception DWTException <ul> @@ -1244,7 +1243,6 @@ */ public void setImage (Image [] images) { checkWidget (); - if (images is null) error (DWT.ERROR_NULL_ARGUMENT); for (int i=0; i<images.length; i++) { setImage (i, images [i]); } @@ -1276,9 +1274,6 @@ * @param index the column index * @param string the new text * - * @exception IllegalArgumentException <ul> - * <li>ERROR_NULL_ARGUMENT - if the text is null</li> - * </ul> * @exception DWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> @@ -1286,7 +1281,6 @@ */ public void setText (int index, String string) { checkWidget (); - if (string is null) error (DWT.ERROR_NULL_ARGUMENT); if (_getText (index).equals (string)) return; int count = Math.max (1, parent.getColumnCount ()); if (0 > index || index > count - 1) return; @@ -1316,9 +1310,6 @@ * * @param strings the array of new strings * - * @exception IllegalArgumentException <ul> - * <li>ERROR_NULL_ARGUMENT - if the text is null</li> - * </ul> * @exception DWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> @@ -1326,7 +1317,6 @@ */ public void setText (String [] strings) { checkWidget (); - if (strings is null) error (DWT.ERROR_NULL_ARGUMENT); for (int i=0; i<strings.length; i++) { String string = strings [i]; if (string !is null) setText (i, string);