myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i...@apache.org
Subject svn commit: r376487 - in /incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago: config/TobagoConfig.java context/ClientProperties.java
Date Thu, 09 Feb 2006 23:28:03 GMT
Author: idus
Date: Thu Feb  9 15:28:02 2006
New Revision: 376487

URL: http://svn.apache.org/viewcvs?rev=376487&view=rev
Log:
cosmetic generifications

Modified:
    incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/config/TobagoConfig.java
    incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/ClientProperties.java

Modified: incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/config/TobagoConfig.java
URL: http://svn.apache.org/viewcvs/incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/config/TobagoConfig.java?rev=376487&r1=376486&r2=376487&view=diff
==============================================================================
--- incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/config/TobagoConfig.java
(original)
+++ incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/config/TobagoConfig.java
Thu Feb  9 15:28:02 2006
@@ -41,7 +41,7 @@
 
   public TobagoConfig() {
     supportedThemes = new ArrayList<Theme>();
-    resourceDirs = new ArrayList();
+    resourceDirs = new ArrayList<String>();
   }
 
   public void addMappingRule(MappingRule mappingRule) {
@@ -101,7 +101,8 @@
 
   public Iterator<MappingRule> getMappingRules() {
     if (mappingRules == null) {
-      return Collections.EMPTY_LIST.iterator();
+      List<MappingRule> objects = Collections.emptyList();
+      return objects.iterator();
     } else {
       return mappingRules.iterator();
     }

Modified: incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/ClientProperties.java
URL: http://svn.apache.org/viewcvs/incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/ClientProperties.java?rev=376487&r1=376486&r2=376487&view=diff
==============================================================================
--- incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/ClientProperties.java
(original)
+++ incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/ClientProperties.java
Thu Feb  9 15:28:02 2006
@@ -145,7 +145,7 @@
 
     String string = locale.toString();
     String prefix = propertyPathMode ? "" : "_";
-    List locales = new ArrayList(4);
+    List<String> locales = new ArrayList<String>(4);
     locales.add(prefix + string);
     int underscore;
     while ((underscore = string.lastIndexOf('_')) > 0) {



Mime
View raw message