Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Vosburgh2016-08-11 18:12:30 -0400
committerBrian Vosburgh2017-05-18 18:38:53 -0400
commit0b31fe35f7a18de4d019322cee882946994a7f0c (patch)
treeb810cc6dd4858630471304969437d28ac650ef88
parent0161947d4c7113e0a3339b1da18451b6383598c0 (diff)
downloadwebtools.dali-0b31fe35f7a18de4d019322cee882946994a7f0c.tar.gz
webtools.dali-0b31fe35f7a18de4d019322cee882946994a7f0c.tar.xz
webtools.dali-0b31fe35f7a18de4d019322cee882946994a7f0c.zip
add @FunctionalInterface annotation to Transformer interfaces
-rw-r--r--common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/transformer/IntTransformer.java1
-rw-r--r--common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/transformer/InterruptibleTransformer.java3
-rw-r--r--common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/transformer/Transformer.java3
3 files changed, 5 insertions, 2 deletions
diff --git a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/transformer/IntTransformer.java b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/transformer/IntTransformer.java
index c7e42d50c9..c4d8f9f36a 100644
--- a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/transformer/IntTransformer.java
+++ b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/transformer/IntTransformer.java
@@ -22,6 +22,7 @@ package org.eclipse.jpt.common.utility.transformer;
*
* @see org.eclipse.jpt.common.utility.transformer.Transformer
*/
+@FunctionalInterface
public interface IntTransformer<I> {
/**
* Return the transformed <code>int</code>.
diff --git a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/transformer/InterruptibleTransformer.java b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/transformer/InterruptibleTransformer.java
index 8ba67df0f5..79402de6d7 100644
--- a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/transformer/InterruptibleTransformer.java
+++ b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/transformer/InterruptibleTransformer.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2013 Oracle. All rights reserved.
+ * Copyright (c) 2005, 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.
@@ -29,6 +29,7 @@ package org.eclipse.jpt.common.utility.transformer;
* @see org.eclipse.jpt.common.utility.command.InterruptibleCommand
* @see org.eclipse.jpt.common.utility.factory.InterruptibleFactory
*/
+@FunctionalInterface
public interface InterruptibleTransformer<I, O> {
/**
* Return the transformed object.
diff --git a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/transformer/Transformer.java b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/transformer/Transformer.java
index 880fb6c939..ef7de3dc14 100644
--- a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/transformer/Transformer.java
+++ b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/transformer/Transformer.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2013 Oracle. All rights reserved.
+ * Copyright (c) 2005, 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.
@@ -27,6 +27,7 @@ package org.eclipse.jpt.common.utility.transformer;
* @see org.eclipse.jpt.common.utility.command.Command
* @see org.eclipse.jpt.common.utility.factory.Factory
*/
+@FunctionalInterface
public interface Transformer<I, O>
extends InterruptibleTransformer<I, O>
{

Back to the top