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/02/10 17:39:49 UTC
svn commit: r1729648 -
/myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/html/HtmlElements.java
Author: lofwyr
Date: Wed Feb 10 16:39:49 2016
New Revision: 1729648
URL: http://svn.apache.org/viewvc?rev=1729648&view=rev
Log:
checkstyle
Modified:
myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/html/HtmlElements.java
Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/html/HtmlElements.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/html/HtmlElements.java?rev=1729648&r1=1729647&r2=1729648&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/html/HtmlElements.java (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/html/HtmlElements.java Wed Feb 10 16:39:49 2016
@@ -137,7 +137,7 @@ public enum HtmlElements {
private final boolean voidElement;
private final boolean inlineElement;
- private static final Set<String> voids = new HashSet<String>();
+ private static final Set<String> VOIDS = new HashSet<String>();
HtmlElements(final String value, final Qualifier... qualifiers) {
this.value = value;
@@ -147,8 +147,8 @@ public enum HtmlElements {
static {
for (final HtmlElements htmlElement : values()) {
- if (htmlElement.isVoid()) {
- voids.add(htmlElement.getValue());
+ if (htmlElement.isVoid()) {
+ VOIDS.add(htmlElement.getValue());
}
}
}
@@ -160,7 +160,7 @@ public enum HtmlElements {
/**
* A void HTML elements is an element whose content model never allows it to have contents under any circumstances.
* See <a href="http://www.w3.org/TR/html-markup/syntax.html#void-element">
- * http://www.w3.org/TR/html-markup/syntax.html#void-element</a>
+ * http://www.w3.org/TR/html-markup/syntax.html#void-element</a>
*/
public boolean isVoid() {
return voidElement;
@@ -171,7 +171,7 @@ public enum HtmlElements {
}
public static boolean isVoid(final String name) {
- return voids.contains(name);
+ return VOIDS.contains(name);
}
private enum Qualifier {VOID, INLINE}