This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push: new 94f98c23178 Polished 94f98c23178 is described below commit 94f98c2317808c6902842a94c422aadee09d8fce Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Wed Feb 14 11:20:14 2024 +0100 Polished --- .../java/org/apache/camel/spi/DataTypeTransformer.java | 12 +++--------- .../src/main/java/org/apache/camel/spi/Transformer.java | 14 +------------- 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/core/camel-api/src/main/java/org/apache/camel/spi/DataTypeTransformer.java b/core/camel-api/src/main/java/org/apache/camel/spi/DataTypeTransformer.java index 062e6754543..7b2c9cd84f2 100644 --- a/core/camel-api/src/main/java/org/apache/camel/spi/DataTypeTransformer.java +++ b/core/camel-api/src/main/java/org/apache/camel/spi/DataTypeTransformer.java @@ -38,25 +38,19 @@ import org.apache.camel.spi.annotations.ServiceFactory; public @interface DataTypeTransformer { /** - * Data type transformer name. Identifies the data type transformer. Should be unique in the Camel context. Can be a - * combination of scheme and name. Is used to detect/reference the transformer when specifying input/output data - * types on routes. - * - * @return the data type transformer name. + * Data type transformer name. Identifies the data type transformer. It Should be unique in the Camel context. It + * Can be a combination of scheme and name. It Is used to detect/reference the transformer when specifying + * input/output data types on routes. */ String name() default ""; /** * Data type representing the input of the transformation. Also used to detect the transformer. - * - * @return */ String fromType() default ""; /** * Data type representing the result of the transformation. Also used to detect the transformer. - * - * @return */ String toType() default ""; diff --git a/core/camel-api/src/main/java/org/apache/camel/spi/Transformer.java b/core/camel-api/src/main/java/org/apache/camel/spi/Transformer.java index b5e5e6177e3..09e48fd359b 100644 --- a/core/camel-api/src/main/java/org/apache/camel/spi/Transformer.java +++ b/core/camel-api/src/main/java/org/apache/camel/spi/Transformer.java @@ -69,8 +69,6 @@ public abstract class Transformer extends ServiceSupport implements CamelContext /** * Get the transformer name that represents the supported data type model. - * - * @return */ public String getName() { return name; @@ -92,8 +90,6 @@ public abstract class Transformer extends ServiceSupport implements CamelContext /** * Set the name for this transformer. Usually a combination of scheme and name. - * - * @param name the transformer name */ public Transformer setName(String name) { this.name = name; @@ -101,7 +97,7 @@ public abstract class Transformer extends ServiceSupport implements CamelContext } /** - * Set the scheme and/or name for this transformer. When using only a scheme the transformer applies to all + * Set the scheme and/or name for this transformer. When using only a scheme, the transformer applies to all * transformations with that scheme. * * @param scheme supported data type scheme @@ -122,8 +118,6 @@ public abstract class Transformer extends ServiceSupport implements CamelContext /** * Set 'from' data type. - * - * @param from 'from' data type */ public Transformer setFrom(String from) { this.from = new DataType(from); @@ -132,8 +126,6 @@ public abstract class Transformer extends ServiceSupport implements CamelContext /** * Set 'to' data type. - * - * @param to 'to' data type */ public Transformer setTo(String to) { this.to = new DataType(to); @@ -155,8 +147,4 @@ public abstract class Transformer extends ServiceSupport implements CamelContext return String.format("%s[name='%s', from='%s', to='%s']", this.getClass().getSimpleName(), name, from, to); } - @Override - protected void doStop() throws Exception { - // no-op - } }