Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Vosburgh2016-07-20 15:24:42 +0000
committerBrian Vosburgh2017-05-18 22:38:12 +0000
commit683f311fa8a53b4cbad22215be45a9f266442a2f (patch)
tree1f51824a2b58bbb1a6e1e76efbcd74d98a97f25d
parent7b76838ca1d5febf9b124582fe5a72a06cbd577b (diff)
downloadwebtools.dali-683f311fa8a53b4cbad22215be45a9f266442a2f.tar.gz
webtools.dali-683f311fa8a53b4cbad22215be45a9f266442a2f.tar.xz
webtools.dali-683f311fa8a53b4cbad22215be45a9f266442a2f.zip
delete AbstractClosure and AbstractInterruptibleClosure
-rw-r--r--common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/closure/AbstractClosure.java38
-rw-r--r--common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/closure/AbstractInterruptibleClosure.java33
-rw-r--r--common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/closure/ClosureAdapter.java3
-rw-r--r--common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/closure/NullCheckClosureWrapper.java1
-rw-r--r--common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/closure/NullCheckInterruptibleClosureWrapper.java1
-rw-r--r--common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/closure/NullClosure.java3
6 files changed, 2 insertions, 77 deletions
diff --git a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/closure/AbstractClosure.java b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/closure/AbstractClosure.java
deleted file mode 100644
index c6153c6e41..0000000000
--- a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/closure/AbstractClosure.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2013 Oracle. 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:
- * Oracle - initial API and implementation
- ******************************************************************************/
-package org.eclipse.jpt.common.utility.internal.closure;
-
-/**
- * Convenience superclass that does nothing if the argument
- * is <code>null</code>; otherwise it calls {@link #execute_(Object)},
- * which is to be implemented by subclasses.
- *
- * @param <A> the type of the object passed to the closure
- *
- * @see NullClosure
- * @see ClosureAdapter
- * @see NullCheckClosureWrapper
- */
-public abstract class AbstractClosure<A>
- extends ClosureAdapter<A>
-{
- @Override
- public final void execute(A argument) {
- if (argument != null) {
- this.execute_(argument);
- }
- }
-
- /**
- * Process the specified argument; its value is guaranteed to be not
- * <code>null</code>.
- */
- protected abstract void execute_(A argument);
-}
diff --git a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/closure/AbstractInterruptibleClosure.java b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/closure/AbstractInterruptibleClosure.java
deleted file mode 100644
index 81ff0e3a45..0000000000
--- a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/closure/AbstractInterruptibleClosure.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2013 Oracle. 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:
- * Oracle - initial API and implementation
- ******************************************************************************/
-package org.eclipse.jpt.common.utility.internal.closure;
-
-/**
- * @see AbstractClosure
- * @see NullClosure
- * @see InterruptibleClosureAdapter
- * @see NullCheckInterruptibleClosureWrapper
- */
-public abstract class AbstractInterruptibleClosure<A>
- extends InterruptibleClosureAdapter<A>
-{
- @Override
- public final void execute(A argument) throws InterruptedException {
- if (argument != null) {
- this.execute_(argument);
- }
- }
-
- /**
- * Process the specified argument; its value is guaranteed to be not
- * <code>null</code>.
- */
- protected abstract void execute_(A argument) throws InterruptedException;
-}
diff --git a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/closure/ClosureAdapter.java b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/closure/ClosureAdapter.java
index ed409e1308..80ef997c93 100644
--- a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/closure/ClosureAdapter.java
+++ b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/closure/ClosureAdapter.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2012, 2013 Oracle. All rights reserved.
+ * Copyright (c) 2012, 2016 Oracle. 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.
@@ -17,7 +17,6 @@ import org.eclipse.jpt.common.utility.internal.ObjectTools;
*
* @param <A> the type of the object passed to the closure
*
- * @see AbstractClosure
* @see NullClosure
* @see NullCheckClosureWrapper
*/
diff --git a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/closure/NullCheckClosureWrapper.java b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/closure/NullCheckClosureWrapper.java
index 23ba6f3522..fe56c88bdd 100644
--- a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/closure/NullCheckClosureWrapper.java
+++ b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/closure/NullCheckClosureWrapper.java
@@ -20,7 +20,6 @@ import org.eclipse.jpt.common.utility.internal.ObjectTools;
*
* @param <A> the type of the object passed to the closure
*
- * @see AbstractClosure
* @see NullClosure
* @see ClosureAdapter
*/
diff --git a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/closure/NullCheckInterruptibleClosureWrapper.java b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/closure/NullCheckInterruptibleClosureWrapper.java
index ef029729b1..6d83062c3e 100644
--- a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/closure/NullCheckInterruptibleClosureWrapper.java
+++ b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/closure/NullCheckInterruptibleClosureWrapper.java
@@ -15,7 +15,6 @@ import org.eclipse.jpt.common.utility.internal.ObjectTools;
/**
* @see NullCheckClosureWrapper
- * @see AbstractInterruptibleClosure
* @see NullClosure
* @see InterruptibleClosureAdapter
*/
diff --git a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/closure/NullClosure.java b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/closure/NullClosure.java
index 099596ec31..596ae36b2d 100644
--- a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/closure/NullClosure.java
+++ b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/closure/NullClosure.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2012, 2013 Oracle. All rights reserved.
+ * Copyright (c) 2012, 2016 Oracle. 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.
@@ -18,7 +18,6 @@ import org.eclipse.jpt.common.utility.internal.ObjectTools;
*
* @param <A> the type of the object passed to the closure
*
- * @see AbstractClosure
* @see ClosureAdapter
* @see NullCheckClosureWrapper
*/

Back to the top