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 2012/05/29 17:51:26 UTC
svn commit: r1343791 - in
/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago:
internal/context/ResourceLocator.java model/TreeDataModel.java
Author: lofwyr
Date: Tue May 29 15:51:26 2012
New Revision: 1343791
URL: http://svn.apache.org/viewvc?rev=1343791&view=rev
Log:
checkstyle
Modified:
myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/context/ResourceLocator.java
myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/model/TreeDataModel.java
Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/context/ResourceLocator.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/context/ResourceLocator.java?rev=1343791&r1=1343790&r2=1343791&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/context/ResourceLocator.java (original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/context/ResourceLocator.java Tue May 29 15:51:26 2012
@@ -149,7 +149,7 @@ class ResourceLocator {
if (themeUrl.toString().endsWith(META_INF_TOBAGO_CONFIG_XML)) {
TobagoConfigFragment tobagoConfig = new TobagoConfigParser().parse(themeUrl);
for (ThemeImpl theme : tobagoConfig.getThemeDefinitions()) {
- addThemeResources( resources, themeUrl, theme);
+ addThemeResources(resources, themeUrl, theme);
}
} else {
// the old way
Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/model/TreeDataModel.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/model/TreeDataModel.java?rev=1343791&r1=1343790&r2=1343791&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/model/TreeDataModel.java (original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/model/TreeDataModel.java Tue May 29 15:51:26 2012
@@ -208,8 +208,8 @@ public class TreeDataModel extends DataM
final List<Integer> children = new ArrayList<Integer>(n);
for (int i = 0; i < n; i++) {
final Integer integer = back.get((DefaultMutableTreeNode) node.getChildAt(i));
- if (integer != null) { // integer == null happens, when the node is not expanded XXX is this a good way to handle that case?
- children.add(integer);
+ if (integer != null) { // integer == null happens, when the node is not expanded
+ children.add(integer); // XXX is this a good way to handle that case?
}
}
return children;