Commits

Anonymous committed fb3ee6e

WW-1483 (avoid eclipse ide warning message)
- use generics when creating Guice's Factory eg. new Factory<Configuration>() { .... }
- added serialversionUID

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@1211e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits b8a985f

Comments (0)

Files changed (1)

src/java/com/opensymphony/xwork2/config/impl/DefaultConfiguration.java

         }
         props.setConstants(builder);
         
-        builder.factory(Configuration.class, new Factory() {
-            public Object create(Context context) throws Exception {
+        builder.factory(Configuration.class, new Factory<Configuration>() {
+            public Configuration create(Context context) throws Exception {
                 return DefaultConfiguration.this;
             }
-            
         });
         
         container = builder.create(false);
     }
     
     class ContainerProperties extends Properties {
+        private static final long serialVersionUID = -7320625750836896089L;
+
         public Object setProperty(String key, String value) {
             String oldValue = getProperty(key);
             if (oldValue != null && !oldValue.equals(value) && !defaultFrameworkBeanName.equals(oldValue)) {