diff dwtx/jface/text/Assert.d @ 162:1a5b8f8129df

...
author Frank Benoit <benoit@tionex.de>
date Mon, 08 Sep 2008 00:51:37 +0200
parents 000f9136b8f7
children
line wrap: on
line diff
--- a/dwtx/jface/text/Assert.d	Wed Aug 27 14:49:30 2008 +0200
+++ b/dwtx/jface/text/Assert.d	Mon Sep 08 00:51:37 2008 +0200
@@ -173,7 +173,7 @@
  * Note that an <code>assert</code> statement is slated to be added to the
  * Java language in JDK 1.4, rending this class obsolete.
  * </p>
- * 
+ *
  * @deprecated As of 3.3, replaced by {@link dwtx.core.runtime.Assert}
  * @noinstantiate This class is not intended to be instantiated by clients.
  */
@@ -254,7 +254,7 @@
      */
     public static bool isLegal(bool expression, String message) {
         if (!expression)
-            throw new IllegalArgumentException("assertion failed; " + message); //$NON-NLS-1$
+            throw new IllegalArgumentException("assertion failed; " ~ message); //$NON-NLS-1$
         return expression;
     }
 
@@ -304,7 +304,7 @@
      */
     public static void isNotNull(Object object, String message) {
         if (object is null)
-            throw new AssertionFailedException("null argument;" + message);//$NON-NLS-1$
+            throw new AssertionFailedException("null argument;" ~ message);//$NON-NLS-1$
     }
 
     /**
@@ -335,7 +335,7 @@
      */
     public static bool isTrue(bool expression, String message) {
         if (!expression)
-            throw new AssertionFailedException("Assertion failed: "+message);//$NON-NLS-1$
+            throw new AssertionFailedException("Assertion failed: "~message);//$NON-NLS-1$
         return expression;
     }
 }