cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r1293552 - /cxf/trunk/distribution/src/main/release/samples/jax_rs/minimal_osgi/src/main/java/minimalosgi/Activator.java
Date Sat, 25 Feb 2012 09:13:26 GMT
Author: ningjiang
Date: Sat Feb 25 09:13:26 2012
New Revision: 1293552

URL: http://svn.apache.org/viewvc?rev=1293552&view=rev
Log:
CXF-4138 clean up the code

Modified:
    cxf/trunk/distribution/src/main/release/samples/jax_rs/minimal_osgi/src/main/java/minimalosgi/Activator.java

Modified: cxf/trunk/distribution/src/main/release/samples/jax_rs/minimal_osgi/src/main/java/minimalosgi/Activator.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/jax_rs/minimal_osgi/src/main/java/minimalosgi/Activator.java?rev=1293552&r1=1293551&r2=1293552&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/jax_rs/minimal_osgi/src/main/java/minimalosgi/Activator.java
(original)
+++ cxf/trunk/distribution/src/main/release/samples/jax_rs/minimal_osgi/src/main/java/minimalosgi/Activator.java
Sat Feb 25 09:13:26 2012
@@ -18,7 +18,7 @@
  */
 
 package minimalosgi;
-
+import java.util.Dictionary;
 import java.util.Hashtable;
 
 import org.osgi.framework.BundleActivator;
@@ -51,7 +51,7 @@ public class Activator implements Bundle
                 public Object addingService(ServiceReference serviceReference) {
                     try {
                         HttpService service = (HttpService)_context.getService(serviceReference);
-                        Hashtable<String, String> initParams = new Hashtable<String,
String>();
+                        Dictionary<String, String> initParams = new Hashtable<String,
String>();
                         initParams.put("javax.ws.rs.Application", SampleApplication.class.getName());
                         service.registerServlet(_path, new SampleServlet(), initParams, null);
                         return service;



Mime
View raw message