summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Liebig2008-02-12 03:28:37 (EST)
committerStefan Liebig2008-02-12 03:28:37 (EST)
commit7a9035108842fc987d2012787e99716c454fe02e (patch)
tree0f9cb217bd6a14c34f88910731bd9c45bfd41a4b
parent3c922fff52af4c952a2fb1f7d013f3b56827394e (diff)
downloadorg.eclipse.riena-7a9035108842fc987d2012787e99716c454fe02e.zip
org.eclipse.riena-7a9035108842fc987d2012787e99716c454fe02e.tar.gz
org.eclipse.riena-7a9035108842fc987d2012787e99716c454fe02e.tar.bz2
@Deprecated
-rw-r--r--org.eclipse.riena.core/src/org/eclipse/riena/core/contract/PostCondition.java7
-rw-r--r--org.eclipse.riena.core/src/org/eclipse/riena/core/contract/PostConditionException.java2
-rw-r--r--org.eclipse.riena.core/src/org/eclipse/riena/core/contract/PreCondition.java4
-rw-r--r--org.eclipse.riena.core/src/org/eclipse/riena/core/contract/PreConditionException.java2
4 files changed, 15 insertions, 0 deletions
diff --git a/org.eclipse.riena.core/src/org/eclipse/riena/core/contract/PostCondition.java b/org.eclipse.riena.core/src/org/eclipse/riena/core/contract/PostCondition.java
index 46f5592..ef7ea09 100644
--- a/org.eclipse.riena.core/src/org/eclipse/riena/core/contract/PostCondition.java
+++ b/org.eclipse.riena.core/src/org/eclipse/riena/core/contract/PostCondition.java
@@ -15,6 +15,7 @@ package org.eclipse.riena.core.contract;
* contract conventions.
*
*/
+@Deprecated
public final class PostCondition {
/**
@@ -42,6 +43,7 @@ public final class PostCondition {
*
* @see de.compeople.spirit.core.base.contract.PostConditionException
*/
+ @Deprecated
public static void assertTrue(String message, boolean condition) {
if (!condition) {
throw new PostConditionException(message);
@@ -70,6 +72,7 @@ public final class PostCondition {
*
* @see de.compeople.spirit.core.base.contract.PostConditionException
*/
+ @Deprecated
public static <T> T assertTrueAndReturn(String message, boolean condition, T returnValue) {
assertTrue(message, condition);
return returnValue;
@@ -139,6 +142,7 @@ public final class PostCondition {
*
* @see de.compeople.spirit.core.base.contract.PostConditionException
*/
+ @Deprecated
public static void assertNotNull(String objectName, Object objectToCheck) {
// Optimized in order to concatenate Strings only if necessary.
// See problem #278
@@ -165,6 +169,7 @@ public final class PostCondition {
*
* @see de.compeople.spirit.core.base.contract.PostConditionException
*/
+ @Deprecated
public static <T> T assertNotNullAndReturn(String objectName, T objectToCheck) {
assertNotNull(objectName, objectToCheck);
return objectToCheck;
@@ -186,6 +191,7 @@ public final class PostCondition {
*
* @see de.compeople.spirit.core.base.contract.PostConditionException
*/
+ @Deprecated
public static void assertNotNullAndNotZeroLength(String objectName, String objectToCheck) {
// Optimized in order to concatenate Strings only if necessary.
// See problem #278
@@ -214,6 +220,7 @@ public final class PostCondition {
*
* @see de.compeople.spirit.core.base.contract.PostConditionException
*/
+ @Deprecated
public static String assertNotNullAndNotZeroLengthAndReturn(String objectName, String objectToCheck) {
assertNotNullAndNotZeroLength(objectName, objectToCheck);
return objectToCheck;
diff --git a/org.eclipse.riena.core/src/org/eclipse/riena/core/contract/PostConditionException.java b/org.eclipse.riena.core/src/org/eclipse/riena/core/contract/PostConditionException.java
index 71c77ab..9ac9af0 100644
--- a/org.eclipse.riena.core/src/org/eclipse/riena/core/contract/PostConditionException.java
+++ b/org.eclipse.riena.core/src/org/eclipse/riena/core/contract/PostConditionException.java
@@ -14,6 +14,7 @@ package org.eclipse.riena.core.contract;
* Runtime exception which indicates post condition violation.
*
*/
+@Deprecated
public class PostConditionException extends RuntimeException {
/**
@@ -27,6 +28,7 @@ public class PostConditionException extends RuntimeException {
* @param msgText
* the message text.
*/
+ @Deprecated
public PostConditionException(String msgText) {
super(msgText);
}
diff --git a/org.eclipse.riena.core/src/org/eclipse/riena/core/contract/PreCondition.java b/org.eclipse.riena.core/src/org/eclipse/riena/core/contract/PreCondition.java
index 1653c86..7780172 100644
--- a/org.eclipse.riena.core/src/org/eclipse/riena/core/contract/PreCondition.java
+++ b/org.eclipse.riena.core/src/org/eclipse/riena/core/contract/PreCondition.java
@@ -15,6 +15,7 @@ package org.eclipse.riena.core.contract;
* contract conventions.
*
*/
+@Deprecated
public final class PreCondition {
/**
@@ -42,6 +43,7 @@ public final class PreCondition {
*
* @see de.compeople.spirit.core.base.contract.PreConditionException
*/
+ @Deprecated
public static void assertTrue(String message, boolean condition) {
if (!condition) {
throw new PreConditionException(message);
@@ -64,6 +66,7 @@ public final class PreCondition {
*
* @see de.compeople.spirit.core.base.contract.PreConditionException
*/
+ @Deprecated
public static void assertNotNull(String objectName, Object objectToCheck) {
// Optimized in order to concatenate Strings only if necessary.
// See problem #278
@@ -88,6 +91,7 @@ public final class PreCondition {
*
* @see de.compeople.spirit.core.base.contract.PreConditionException
*/
+ @Deprecated
public static void assertNotNullAndNotZeroLength(String objectName, String objectToCheck) {
// Optimized in order to concatenate Strings only if necessary.
// See problem #278
diff --git a/org.eclipse.riena.core/src/org/eclipse/riena/core/contract/PreConditionException.java b/org.eclipse.riena.core/src/org/eclipse/riena/core/contract/PreConditionException.java
index c697133..43a8c36 100644
--- a/org.eclipse.riena.core/src/org/eclipse/riena/core/contract/PreConditionException.java
+++ b/org.eclipse.riena.core/src/org/eclipse/riena/core/contract/PreConditionException.java
@@ -14,6 +14,7 @@ package org.eclipse.riena.core.contract;
* Runtime exception which indicates pre condition violation.
*
*/
+@Deprecated
public class PreConditionException extends RuntimeException {
/**
@@ -27,6 +28,7 @@ public class PreConditionException extends RuntimeException {
* @param msgText
* the message text.
*/
+ @Deprecated
public PreConditionException(String msgText) {
super(msgText);
}