You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2018/01/18 23:06:17 UTC
[myfaces-tobago] 01/02: code style: fix missing deprecated
annotations
This is an automated email from the ASF dual-hosted git repository.
lofwyr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
commit 350ffb52e27af21bfed42d67aba01dfe158026fb
Author: Udo Schnurpfeil <lo...@apache.org>
AuthorDate: Thu Jan 18 15:41:00 2018 +0100
code style: fix missing deprecated annotations
---
.../myfaces/tobago/component/Attributes.java | 17 +++-
.../apache/myfaces/tobago/context/UserAgent.java | 1 +
.../tobago/internal/component/AbstractUIData.java | 5 +-
.../tobago/internal/component/AbstractUISheet.java | 6 +-
.../config/TobagoConfigEntityResolver.java | 3 +
.../tobago/internal/config/TobagoConfigImpl.java | 3 +-
.../renderer/TobagoClientBehaviorRenderer.java | 1 +
.../component/TreeCommandTagDeclaration.java | 6 +-
.../taglib/component/TreeNodeTagDeclaration.java | 3 +
.../webapp/DebugResponseWriterWrapper.java | 6 ++
.../internal/webapp/TobagoResponseWriterBase.java | 3 +
.../webapp/TobagoResponseWriterWrapper.java | 6 ++
.../apache/myfaces/tobago/layout/TextAlign.java | 3 +-
.../tobago/renderkit/html/DataAttributes.java | 3 +-
.../apache/myfaces/tobago/util/BeanComparator.java | 9 ++
.../tobago/util/ValueExpressionComparator.java | 9 ++
.../tobago/webapp/TobagoResponseWriter.java | 6 +-
.../apache/myfaces/tobago/example/data/Planet.java | 99 ----------------------
.../apache/myfaces/tobago/example/data/Solar.java | 42 ---------
.../tobago/example/demo/SuggestController.java | 4 +-
.../myfaces/tobago/apt/generate/ComponentInfo.java | 3 +
21 files changed, 81 insertions(+), 157 deletions(-)
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/component/Attributes.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/component/Attributes.java
index 858706d..d2505dc 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/component/Attributes.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/component/Attributes.java
@@ -63,6 +63,9 @@ public enum Attributes {
closed,
collapsed,
collapsedMode,
+ /**
+ * @deprecated since 4.0.0
+ */
@Deprecated
column,
columnSpan,
@@ -259,10 +262,14 @@ public enum Attributes {
*/
overwriteSmall,
omit,
- /** @deprecated */
+ /**
+ * @deprecated since 3.0.0
+ */
@Deprecated
onclick,
- /** @deprecated */
+ /**
+ * @deprecated since 3.0.0
+ */
@Deprecated
onchange,
open,
@@ -310,9 +317,15 @@ public enum Attributes {
required,
resizable,
right,
+ /**
+ * @deprecated since 4.0.0
+ */
@Deprecated
rigid,
rowId,
+ /**
+ * @deprecated since 4.0.0
+ */
@Deprecated
row,
rowSpan,
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/context/UserAgent.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/context/UserAgent.java
index 04b6a26..927d85e 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/context/UserAgent.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/context/UserAgent.java
@@ -100,6 +100,7 @@ public final class UserAgent implements Serializable {
/**
* @deprecated no longer supported, since Tobago 1.5. Please use {@link #PRESTO}.
*/
+ @Deprecated
public static final UserAgent OPERA = new UserAgent("opera", null);
/**
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUIData.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUIData.java
index 7295c47..4d4d0bc 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUIData.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUIData.java
@@ -48,7 +48,7 @@ public abstract class AbstractUIData extends javax.faces.component.UIData implem
private static final Logger LOG = LoggerFactory.getLogger(AbstractUIData.class);
/**
- * @deprecated Since 2.0.0. The marked concept has been replaced by "selected".
+ * @deprecated since 2.0.0. The marked concept has been replaced by "selected".
*/
@Deprecated
public static final String SUFFIX_MARKED = "marked";
@@ -101,8 +101,9 @@ public abstract class AbstractUIData extends javax.faces.component.UIData implem
}
/**
- * @deprecated since Tobago 3.0.0, please use {@link #getSelectable}
+ * @deprecated since 3.0.0, please use {@link #getSelectable}
*/
+ @Deprecated
public Selectable getSelectableAsEnum() {
return getSelectable();
}
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java
index 109c2fd..2b38563 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java
@@ -159,9 +159,9 @@ public abstract class AbstractUISheet extends AbstractUIData
}
/**
- * @deprecated The name of this method is ambiguous.
- * You may use {@link #getLastRowIndexOfCurrentPage()}. Deprecated since 1.5.5.
+ * @deprecated since 1.5.5, the name of this method is ambiguous. You may use {@link #getLastRowIndexOfCurrentPage()}.
*/
+ @Deprecated
public int getLast() {
final int last = getFirst() + getRows();
return last < getRowCount() ? last : getRowCount();
@@ -204,7 +204,7 @@ public abstract class AbstractUISheet extends AbstractUIData
/**
* @return returns the current page (based by 1).
- * @deprecated Please use {@link #getCurrentPage()} which returns the value zero-based. Deprecated since 1.5.5.
+ * @deprecated since 1.5.5, please use {@link #getCurrentPage()} which returns the value zero-based.
*/
@Deprecated
public int getPage() {
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/config/TobagoConfigEntityResolver.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/config/TobagoConfigEntityResolver.java
index 0bd22a8..222346a 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/config/TobagoConfigEntityResolver.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/config/TobagoConfigEntityResolver.java
@@ -35,6 +35,9 @@ public class TobagoConfigEntityResolver extends DefaultHandler {
private static final String TOBAGO_CONFIG_DTD_1_0_30 = "/org/apache/myfaces/tobago/config/tobago-config-1.0.30.dtd";
private static final String TOBAGO_CONFIG_DTD_1_0_34 = "/org/apache/myfaces/tobago/config/tobago-config-1.0.34.dtd";
protected static final String TOBAGO_CONFIG_XSD_1_5 = "/org/apache/myfaces/tobago/config/tobago-config-1.5.xsd";
+ /**
+ * @deprecated since 2.0.0, 1.6 wasn't released
+ */
@Deprecated
protected static final String TOBAGO_CONFIG_XSD_1_6 = "/org/apache/myfaces/tobago/config/tobago-config-1.6.xsd";
protected static final String TOBAGO_CONFIG_XSD_2_0 = "/org/apache/myfaces/tobago/config/tobago-config-2.0.xsd";
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/config/TobagoConfigImpl.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/config/TobagoConfigImpl.java
index f306281..1a27ae0 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/config/TobagoConfigImpl.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/config/TobagoConfigImpl.java
@@ -208,7 +208,7 @@ public class TobagoConfigImpl extends TobagoConfig {
}
/**
- * @deprecated use FacesContext.isProjectStage
+ * @deprecated since 4.0.0, use FacesContext.isProjectStage
* @return the ProjectStage
*/
@Override
@@ -329,6 +329,7 @@ public class TobagoConfigImpl extends TobagoConfig {
/**
* {@inheritDoc}
+ * @deprecated since Tobago 3.0.0
*/
@Override
@Deprecated
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/TobagoClientBehaviorRenderer.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/TobagoClientBehaviorRenderer.java
index 6a72d13..c3b8130 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/TobagoClientBehaviorRenderer.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/TobagoClientBehaviorRenderer.java
@@ -178,6 +178,7 @@ public class TobagoClientBehaviorRenderer extends javax.faces.render.ClientBehav
/**
* @deprecated TBD
*/
+ @Deprecated
public static Collapse createCollapsible(final FacesContext facesContext, final UIComponent component) {
//// TBD: is this nice? May be implemented with a JSF behaviour?
//// BEGIN
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/TreeCommandTagDeclaration.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/TreeCommandTagDeclaration.java
index ce55c74..c80b44a 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/TreeCommandTagDeclaration.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/TreeCommandTagDeclaration.java
@@ -49,8 +49,10 @@ import javax.faces.component.UICommand;
/**
* Renders a command inside of a tree.
+ *
* @deprecated since 4.0.0, please use tc:link
*/
+@Deprecated
@Tag(name = "treeCommand")
@BodyContentDescription(anyTagOf = "facestag")
@UIComponentTag(
@@ -78,6 +80,6 @@ import javax.faces.component.UICommand;
rendererType = RendererTypes.TREE_COMMAND)
public interface TreeCommandTagDeclaration
extends HasIdBindingAndRendered, HasAction, HasActionListener, IsImmediateCommand, HasConfirmation,
- HasLink, HasOutcome, HasFragment, IsTransition, HasTarget, IsDisabledBySecurity,
- IsOmit, HasLabel, HasAccessKey, HasTip, HasTabIndex, IsVisual {
+ HasLink, HasOutcome, HasFragment, IsTransition, HasTarget, IsDisabledBySecurity,
+ IsOmit, HasLabel, HasAccessKey, HasTip, HasTabIndex, IsVisual {
}
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/TreeNodeTagDeclaration.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/TreeNodeTagDeclaration.java
index da09ba3..69d4524 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/TreeNodeTagDeclaration.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/TreeNodeTagDeclaration.java
@@ -52,6 +52,9 @@ import javax.faces.component.UIColumn;
public interface TreeNodeTagDeclaration
extends HasIdBindingAndRendered, HasTip, IsDisabled, IsVisual {
+ /**
+ * @deprecated since 2.0.0
+ */
@Deprecated
@TagAttribute()
@UIComponentTagAttribute(type = "boolean", generate = false, defaultValue = "false")
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/webapp/DebugResponseWriterWrapper.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/webapp/DebugResponseWriterWrapper.java
index 1f42933..c953952 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/webapp/DebugResponseWriterWrapper.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/webapp/DebugResponseWriterWrapper.java
@@ -71,12 +71,18 @@ public class DebugResponseWriterWrapper extends TobagoResponseWriter {
return new DebugResponseWriterWrapper((TobagoResponseWriter) responseWriter.cloneWithWriter(writer));
}
+ /**
+ * @deprecated since 1.0.11
+ */
@Override
@Deprecated
public void writeAttribute(final String name, final Object value, final String property) throws IOException {
responseWriter.writeAttribute(name, value, property);
}
+ /**
+ * @deprecated since 1.0.11
+ */
@Override
@Deprecated
public void writeText(final Object text, final String property) throws IOException {
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/webapp/TobagoResponseWriterBase.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/webapp/TobagoResponseWriterBase.java
index 990042d..2c3d758 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/webapp/TobagoResponseWriterBase.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/webapp/TobagoResponseWriterBase.java
@@ -272,6 +272,9 @@ public abstract class TobagoResponseWriterBase extends TobagoResponseWriter {
write("-->");
}
+ /**
+ * @deprecated since 3.0.0
+ */
@Override
@Deprecated
public void writeAttribute(final String name, final Object value, final String property)
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/webapp/TobagoResponseWriterWrapper.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/webapp/TobagoResponseWriterWrapper.java
index 5b324c8..cfd4ed1 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/webapp/TobagoResponseWriterWrapper.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/webapp/TobagoResponseWriterWrapper.java
@@ -72,12 +72,18 @@ public class TobagoResponseWriterWrapper extends TobagoResponseWriter {
return responseWriter.cloneWithWriter(writer);
}
+ /**
+ * @deprecated since 1.0.11
+ */
@Override
@Deprecated
public void writeAttribute(final String name, final Object value, final String property) throws IOException {
responseWriter.writeAttribute(name, value, property);
}
+ /**
+ * @deprecated since 1.0.11
+ */
@Override
@Deprecated
public void writeText(final Object text, final String property) throws IOException {
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/layout/TextAlign.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/layout/TextAlign.java
index bd90f90..66a270e 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/layout/TextAlign.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/layout/TextAlign.java
@@ -21,7 +21,7 @@ package org.apache.myfaces.tobago.layout;
/**
* Values for text alignments used with CSS.
- *
+ * <p>
* Note: the enums are not capitalized, because of problems with {@link java.beans.PropertyEditor}.
*/
public enum TextAlign {
@@ -54,6 +54,7 @@ public enum TextAlign {
/**
* @deprecated Since Tobago 3.0.0 Please use {@link TextAlign#name}
*/
+ @Deprecated
public String getValue() {
return name();
}
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/html/DataAttributes.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/html/DataAttributes.java
index 7faf578..8125575 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/html/DataAttributes.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/html/DataAttributes.java
@@ -28,8 +28,9 @@ public enum DataAttributes implements MarkupLanguageAttributes {
/**
* Ajax behaviors execute and render attributes for TabGroup and Sheet reload
- * @deprecated please use COMMANDS
+ * @deprecated since 3.0.0, please use COMMANDS
*/
+ @Deprecated
BEHAVIOR_COMMANDS("data-tobago-behavior-commands"),
/**
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/util/BeanComparator.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/util/BeanComparator.java
index 98b07cd..0dd1c1c 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/util/BeanComparator.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/util/BeanComparator.java
@@ -34,17 +34,26 @@ public class BeanComparator extends ComparatorBase implements Serializable {
private String property;
+ /**
+ * @deprecated since 4.0.0
+ */
@Deprecated
public BeanComparator(final String property) {
this.property = property;
}
+ /**
+ * @deprecated since 4.0.0
+ */
@Deprecated
public BeanComparator(final String property, final boolean reverse) {
super(reverse);
this.property = property;
}
+ /**
+ * @deprecated since 4.0.0
+ */
@Deprecated
public BeanComparator(final String property, final Comparator comparator) {
super(comparator);
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/util/ValueExpressionComparator.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/util/ValueExpressionComparator.java
index 5f44e0a..3ca90fc 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/util/ValueExpressionComparator.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/util/ValueExpressionComparator.java
@@ -37,6 +37,9 @@ public class ValueExpressionComparator extends ComparatorBase {
private ValueExpression valueExpression;
+ /**
+ * @deprecated since 4.0.0
+ */
@Deprecated
public ValueExpressionComparator(
final FacesContext facesContext, final String var, final ValueExpression valueExpression) {
@@ -45,6 +48,9 @@ public class ValueExpressionComparator extends ComparatorBase {
this.valueExpression = valueExpression;
}
+ /**
+ * @deprecated since 4.0.0
+ */
@Deprecated
public ValueExpressionComparator(
final FacesContext facesContext, final String var, final ValueExpression valueExpression,
@@ -55,6 +61,9 @@ public class ValueExpressionComparator extends ComparatorBase {
this.valueExpression = valueExpression;
}
+ /**
+ * @deprecated since 4.0.0
+ */
@Deprecated
public ValueExpressionComparator(
final FacesContext facesContext, final String var,
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/webapp/TobagoResponseWriter.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/webapp/TobagoResponseWriter.java
index 408db2a..6fe8681 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/webapp/TobagoResponseWriter.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/webapp/TobagoResponseWriter.java
@@ -74,14 +74,16 @@ public abstract class TobagoResponseWriter extends ResponseWriter {
public abstract ResponseWriter cloneWithWriter(Writer writer);
/**
- * @deprecated Should not directly called via this interface. There is be a special method which might be better.
+ * @deprecated since 1.0.11, should not directly called via this interface. There is be a special method which might
+ * be better.
*/
@Override
@Deprecated
public abstract void writeAttribute(String name, Object value, final String property) throws IOException;
/**
- * @deprecated Should not directly called via this interface. There is be a special method which might be better.
+ * @deprecated since 1.0.11, should not directly called via this interface. There is be a special method which might
+ * be better.
*/
@Override
@Deprecated
diff --git a/tobago-example/tobago-example-data/src/main/java/org/apache/myfaces/tobago/example/data/Planet.java b/tobago-example/tobago-example-data/src/main/java/org/apache/myfaces/tobago/example/data/Planet.java
deleted file mode 100644
index bfbb5ee..0000000
--- a/tobago-example/tobago-example-data/src/main/java/org/apache/myfaces/tobago/example/data/Planet.java
+++ /dev/null
@@ -1,99 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.myfaces.tobago.example.data;
-
-import java.util.ArrayList;
-import java.util.List;
-
-@Deprecated
-public class Planet {
-
- public static final Planet MERCURY
- = new Planet("NN", "NN", "NN", "NN", new ArrayList());
- public static final Planet VENUS
- = new Planet("NN", "NN", "NN", "NN", new ArrayList());
- public static final Planet EARTH
- = new Planet("NN", "NN", "NN", "NN", new ArrayList());
- public static final Planet MARS
- = new Planet("6794", "6.421e26", "227940000", "686.98", SolarObject.getSatellites("Mars"));
-
- private String diameter;
- private String mass;
- private String sunDistance;
- private String timeOfCirculation;
- private List moons;
-
- public Planet(final Planet planet) {
- this.diameter = planet.diameter;
- this.mass = planet.mass;
- this.sunDistance = planet.sunDistance;
- this.timeOfCirculation = planet.timeOfCirculation;
- this.moons = planet.moons;
- }
-
- public Planet(final String diameter, final String mass, final String sunDistance,
- final String timeOfCirculation, final List moons) {
- this.diameter = diameter;
- this.mass = mass;
- this.sunDistance = sunDistance;
- this.timeOfCirculation = timeOfCirculation;
- this.moons = moons;
- }
-
- public String getDiameter() {
- return diameter;
- }
-
- public void setDiameter(final String diameter) {
- this.diameter = diameter;
- }
-
- public String getMass() {
- return mass;
- }
-
- public void setMass(final String mass) {
- this.mass = mass;
- }
-
- public String getSunDistance() {
- return sunDistance;
- }
-
- public void setSunDistance(final String sunDistance) {
- this.sunDistance = sunDistance;
- }
-
- public String getTimeOfCirculation() {
- return timeOfCirculation;
- }
-
- public void setTimeOfCirculation(final String timeOfCirculation) {
- this.timeOfCirculation = timeOfCirculation;
- }
-
- public List getMoons() {
- return moons;
- }
-
- public void setMoons(final List moons) {
- this.moons = moons;
- }
-}
diff --git a/tobago-example/tobago-example-data/src/main/java/org/apache/myfaces/tobago/example/data/Solar.java b/tobago-example/tobago-example-data/src/main/java/org/apache/myfaces/tobago/example/data/Solar.java
deleted file mode 100644
index 96f6cc4..0000000
--- a/tobago-example/tobago-example-data/src/main/java/org/apache/myfaces/tobago/example/data/Solar.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.myfaces.tobago.example.data;
-
-import java.util.ArrayList;
-import java.util.List;
-
-@Deprecated
-public class Solar {
-
- private List<Planet> planets;
-
- public Solar() {
- planets = new ArrayList<>();
- planets.add(new Planet(Planet.MARS));
- }
-
- public List<Planet> getPlanets() {
- return planets;
- }
-
- public void setPlanets(final List<Planet> planets) {
- this.planets = planets;
- }
-}
diff --git a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/SuggestController.java b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/SuggestController.java
index 396c2d0..7ee4279 100644
--- a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/SuggestController.java
+++ b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/SuggestController.java
@@ -64,8 +64,8 @@ public class SuggestController implements Serializable {
return solarObjects;
}
- /*
- * use <tc:selectItems/> instead
+ /**
+ * @deprecated use <tc:selectItems/> instead
*/
@Deprecated
public List<String> getInputSuggestItems(final UIInput component) {
diff --git a/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/generate/ComponentInfo.java b/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/generate/ComponentInfo.java
index 9e205a2..5967779 100644
--- a/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/generate/ComponentInfo.java
+++ b/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/generate/ComponentInfo.java
@@ -45,6 +45,9 @@ public class ComponentInfo extends TagInfo {
setComponentClassName(componentTag.uiComponent());
}
+ /**
+ * @deprecated since 2.0.0
+ */
@Deprecated
public ComponentInfo(final String sourceClass, final String qualifiedName, final String rendererType) {
super(sourceClass, qualifiedName, new String[]{rendererType});
--
To stop receiving notification emails like this one, please contact
"commits@myfaces.apache.org" <co...@myfaces.apache.org>.