cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1490347 - in /cxf/branches/dkulp-nowsdl4j/api/src: main/java/org/apache/cxf/common/util/PropertiesLoaderUtils.java test/java/org/apache/cxf/common/util/PropertiesLoaderUtilsTest.java
Date Thu, 06 Jun 2013 16:32:43 GMT
Author: dkulp
Date: Thu Jun  6 16:32:43 2013
New Revision: 1490347

URL: http://svn.apache.org/r1490347
Log:
Remove an unused method

Modified:
    cxf/branches/dkulp-nowsdl4j/api/src/main/java/org/apache/cxf/common/util/PropertiesLoaderUtils.java
    cxf/branches/dkulp-nowsdl4j/api/src/test/java/org/apache/cxf/common/util/PropertiesLoaderUtilsTest.java

Modified: cxf/branches/dkulp-nowsdl4j/api/src/main/java/org/apache/cxf/common/util/PropertiesLoaderUtils.java
URL: http://svn.apache.org/viewvc/cxf/branches/dkulp-nowsdl4j/api/src/main/java/org/apache/cxf/common/util/PropertiesLoaderUtils.java?rev=1490347&r1=1490346&r2=1490347&view=diff
==============================================================================
--- cxf/branches/dkulp-nowsdl4j/api/src/main/java/org/apache/cxf/common/util/PropertiesLoaderUtils.java
(original)
+++ cxf/branches/dkulp-nowsdl4j/api/src/main/java/org/apache/cxf/common/util/PropertiesLoaderUtils.java
Thu Jun  6 16:32:43 2013
@@ -23,8 +23,6 @@ import java.io.BufferedInputStream;
 import java.io.IOException;
 import java.io.InputStream;
 import java.net.URL;
-import java.util.ArrayList;
-import java.util.Collection;
 import java.util.Enumeration;
 import java.util.Properties;
 import java.util.logging.Level;
@@ -86,23 +84,4 @@ public final class PropertiesLoaderUtils
         return properties;
     }
 
-    /**
-     * Retrieves the names of all properties that bind to the specified value.
-     * 
-     * @param properties the properties to search
-     * @param value the property value 
-     * @return the list of property names
-     */
-    public static Collection<String> getPropertyNames(Properties properties, String
value) {
-        Collection<String> names = new ArrayList<String>();
-        Enumeration<?> e = properties.propertyNames();
-        while (e.hasMoreElements()) {
-            String name = (String)e.nextElement();
-            if (value.equals(properties.getProperty(name))) {
-                names.add(name);
-            }            
-        }
-        return names;
-    }
-
 }

Modified: cxf/branches/dkulp-nowsdl4j/api/src/test/java/org/apache/cxf/common/util/PropertiesLoaderUtilsTest.java
URL: http://svn.apache.org/viewvc/cxf/branches/dkulp-nowsdl4j/api/src/test/java/org/apache/cxf/common/util/PropertiesLoaderUtilsTest.java?rev=1490347&r1=1490346&r2=1490347&view=diff
==============================================================================
--- cxf/branches/dkulp-nowsdl4j/api/src/test/java/org/apache/cxf/common/util/PropertiesLoaderUtilsTest.java
(original)
+++ cxf/branches/dkulp-nowsdl4j/api/src/test/java/org/apache/cxf/common/util/PropertiesLoaderUtilsTest.java
Thu Jun  6 16:32:43 2013
@@ -53,13 +53,4 @@ public class PropertiesLoaderUtilsTest e
 
     }
 
-    @Test
-    public void testGetPropertyNames() throws Exception {
-        Collection<String> names = PropertiesLoaderUtils.getPropertyNames(properties,
soapBindingFactory);
-        assertNotNull(names);
-        assertEquals(3, names.size());
-        assertTrue(names.contains("http://schemas.xmlsoap.org/wsdl/soap/"));
-        assertTrue(names.contains("http://schemas.xmlsoap.org/wsdl/soap/http"));
-        assertTrue(names.contains("http://cxf.apache.org/transports/jms"));
-    }
 }



Mime
View raw message