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 2016/09/29 13:10:54 UTC
svn commit: r1762763 -
/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/LabelWithAccessKey.java
Author: lofwyr
Date: Thu Sep 29 13:10:54 2016
New Revision: 1762763
URL: http://svn.apache.org/viewvc?rev=1762763&view=rev
Log:
cleanup deprecated code
Modified:
myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/LabelWithAccessKey.java
Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/LabelWithAccessKey.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/LabelWithAccessKey.java?rev=1762763&r1=1762762&r2=1762763&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/LabelWithAccessKey.java (original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/LabelWithAccessKey.java Thu Sep 29 13:10:54 2016
@@ -21,7 +21,6 @@ package org.apache.myfaces.tobago.render
import org.apache.myfaces.tobago.component.SupportsAccessKey;
import org.apache.myfaces.tobago.component.UISelectBooleanCheckbox;
-import org.apache.myfaces.tobago.internal.util.Deprecation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -35,24 +34,6 @@ public final class LabelWithAccessKey {
private final Character accessKey;
private final int pos;
- /**
- * @deprecated since 2.0.0. This is a workaround.
- */
- @Deprecated
- public LabelWithAccessKey(final String label) {
- this(new SupportsAccessKey() {
- @Override
- public Character getAccessKey() {
- return null;
- }
-
- @Override
- public String getLabel() {
- return label;
- }
- });
- }
-
public LabelWithAccessKey(final SupportsAccessKey component) {
String label0;
@@ -87,30 +68,6 @@ public final class LabelWithAccessKey {
pos = pos0;
}
- /**
- * @deprecated since 2.0.0. Attributes are final now, use a new instance.
- */
- @Deprecated
- public void setup(final String label) {
- Deprecation.LOG.error("Ignoring label: " + label);
- }
-
- /**
- * @deprecated since 2.0.0. Attributes are final now, use a new instance.
- */
- @Deprecated
- public void reset() {
- Deprecation.LOG.error("Ignoring reset.");
- }
-
- /**
- * @deprecated since 2.0.0. Please use {@link #getLabel()}.
- */
- @Deprecated
- public String getText() {
- return label;
- }
-
public String getLabel() {
return label;
}
@@ -124,22 +81,6 @@ public final class LabelWithAccessKey {
}
/**
- * @deprecated since 2.0.0. Attributes are final now, use a new instance.
- */
- @Deprecated
- public void setText(final String text) {
- Deprecation.LOG.error("Ignoring label: " + text);
- }
-
- /**
- * @deprecated since 2.0.0. Attributes are final now, use a new instance.
- */
- @Deprecated
- public void setAccessKey(Character accessKey) {
- Deprecation.LOG.error("Ignoring accessKey: " + accessKey);
- }
-
- /**
* Ensures, that no illegal character will be write out.
* (If this is changed from only allowing normal letters and numbers, the renderers may change the escaping)
*/