camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r833292 - in /camel/trunk/camel-core/src/main/java/org/apache/camel/impl: DefaultPackageScanClassResolver.java DefaultRouteContext.java ServiceSupport.java WebSpherePackageScanClassResolver.java
Date Fri, 06 Nov 2009 03:31:37 GMT
Author: ningjiang
Date: Fri Nov  6 03:31:36 2009
New Revision: 833292

URL: http://svn.apache.org/viewvc?rev=833292&view=rev
Log:
Fixed the CS issues of camel-core

Modified:
    camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultPackageScanClassResolver.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultRouteContext.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ServiceSupport.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/impl/WebSpherePackageScanClassResolver.java

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultPackageScanClassResolver.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultPackageScanClassResolver.java?rev=833292&r1=833291&r2=833292&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultPackageScanClassResolver.java
(original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultPackageScanClassResolver.java
Fri Nov  6 03:31:36 2009
@@ -391,8 +391,7 @@
      *
      * @param test the test used to determine if the class matches
      * @param fqn  the fully qualified name of a class
-     */
-    @SuppressWarnings("unchecked")
+     */    
     protected void addIfMatching(PackageScanFilter test, String fqn, Set<Class> classes)
{
         try {
             String externalName = fqn.substring(0, fqn.indexOf('.')).replace('/', '.');

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultRouteContext.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultRouteContext.java?rev=833292&r1=833291&r2=833292&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultRouteContext.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultRouteContext.java Fri
Nov  6 03:31:36 2009
@@ -135,8 +135,7 @@
     public <T> Map<String, T> lookupByType(Class<T> type) {
         return getCamelContext().getRegistry().lookupByType(type);
     }
-
-    @SuppressWarnings("unchecked")
+    
     public void commit() {
         // now lets turn all of the event driven consumer processors into a single route
         if (!eventDrivenProcessors.isEmpty()) {

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ServiceSupport.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ServiceSupport.java?rev=833292&r1=833291&r2=833292&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ServiceSupport.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ServiceSupport.java Fri Nov
 6 03:31:36 2009
@@ -57,11 +57,11 @@
                     ex = e;
                 } finally {
                     if (ex != null) {
-                    	try {
-                    		stop(childrenStarted);
-                    	} catch (Exception e) {
-                    		// Ignore exceptions as we want to show the original exception
-                    	}
+                        try {
+                            stop(childrenStarted);
+                        } catch (Exception e) {
+                            // Ignore exceptions as we want to show the original exception
+                        }
                         throw ex;
                     } else {
                         started.set(true);

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/impl/WebSpherePackageScanClassResolver.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/WebSpherePackageScanClassResolver.java?rev=833292&r1=833291&r2=833292&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/impl/WebSpherePackageScanClassResolver.java
(original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/impl/WebSpherePackageScanClassResolver.java
Fri Nov  6 03:31:36 2009
@@ -58,7 +58,6 @@
      * @throws java.io.IOException is thrown by the classloader
      */
     @Override
-    @SuppressWarnings("unchecked")
     protected Enumeration<URL> getResources(ClassLoader loader, String packageName)
throws IOException {
         // try super first, just in vase
         Enumeration<URL> enumeration = super.getResources(loader, packageName);



Mime
View raw message