Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2006-04-02 05:24:00 -0400
committerEike Stepper2006-04-02 05:24:00 -0400
commit2b0587c8d86dcf22ce618a738991269c985c631f (patch)
tree631ba8d421f8e387434f9b7b01ca9bc25f0be855 /plugins/org.eclipse.net4j.util
parentd9d4f88a0aea4c307940262524cb3bb08c576839 (diff)
downloadcdo-2b0587c8d86dcf22ce618a738991269c985c631f.tar.gz
cdo-2b0587c8d86dcf22ce618a738991269c985c631f.tar.xz
cdo-2b0587c8d86dcf22ce618a738991269c985c631f.zip
Fixed case of various acronyms.
Diffstat (limited to 'plugins/org.eclipse.net4j.util')
-rw-r--r--plugins/org.eclipse.net4j.util/copyright.txt8
-rw-r--r--plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/Assert.java43
2 files changed, 8 insertions, 43 deletions
diff --git a/plugins/org.eclipse.net4j.util/copyright.txt b/plugins/org.eclipse.net4j.util/copyright.txt
new file mode 100644
index 0000000000..7d67d89d46
--- /dev/null
+++ b/plugins/org.eclipse.net4j.util/copyright.txt
@@ -0,0 +1,8 @@
+Copyright (c) 2004, 2005, 2006 Eike Stepper, Fuggerstr. 39, 10777 Berlin, Germany.
+All rights reserved. This program and the accompanying materials
+are made available under the terms of the Eclipse Public License v1.0
+which accompanies this distribution, and is available at
+http://www.eclipse.org/legal/epl-v10.html
+
+Contributors:
+ Eike Stepper - initial API and implementation \ No newline at end of file
diff --git a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/Assert.java b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/Assert.java
index b389e83463..bf2a13cf3a 100644
--- a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/Assert.java
+++ b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/Assert.java
@@ -1,19 +1,6 @@
package org.eclipse.net4j.util;
-/**
- * <code>Assert</code> is useful for for embedding runtime sanity checks
- * in code.
- * The predicate methods all test a condition and throw some
- * type of unchecked exception if the condition does not hold.
- * <p>
- * Assertion failure exceptions, like most runtime exceptions, are
- * thrown when something is misbehaving. Assertion failures are invariably
- * unspecified behavior; consequently, clients should never rely on
- * these being thrown (and certainly should not being catching them
- * specifically).
- * </p>
- */
public final class Assert
{
/* This class is not intended to be instantiated. */
@@ -22,25 +9,11 @@ public final class Assert
// not allowed
}
- /** Asserts that the given object is not <code>null</code>. If this
- * is not the case, some kind of unchecked exception is thrown.
- *
- * @param object the value to test
- * @exception IllegalArgumentException if the object is <code>null</code>
- */
public static void isNotNull(Object object)
{
isNotNull(object, ""); //$NON-NLS-1$
}
- /** Asserts that the given object is not <code>null</code>. If this
- * is not the case, some kind of unchecked exception is thrown.
- * The given message is included in that exception, to aid debugging.
- *
- * @param object the value to test
- * @param message the message to include in the exception
- * @exception IllegalArgumentException if the object is <code>null</code>
- */
public static void isNotNull(Object object, String message)
{
if (object == null)
@@ -51,27 +24,11 @@ public final class Assert
}
}
- /** Asserts that the given boolean is <code>true</code>. If this
- * is not the case, some kind of unchecked exception is thrown.
- *
- * @param expression the outcode of the check
- * @return <code>true</code> if the check passes (does not return
- * if the check fails)
- */
public static boolean isTrue(boolean expression)
{
return isTrue(expression, ""); //$NON-NLS-1$
}
- /** Asserts that the given boolean is <code>true</code>. If this
- * is not the case, some kind of unchecked exception is thrown.
- * The given message is included in that exception, to aid debugging.
- *
- * @param expression the outcode of the check
- * @param message the message to include in the exception
- * @return <code>true</code> if the check passes (does not return
- * if the check fails)
- */
public static boolean isTrue(boolean expression, String message)
{
if (!expression)

Back to the top