[jboss-cvs] JBossAS SVN: r96225 - projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/vfs.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Nov 10 11:55:53 EST 2009


Author: alesj
Date: 2009-11-10 11:55:53 -0500 (Tue, 10 Nov 2009)
New Revision: 96225

Modified:
   projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/vfs/BundleVFSContextFactory.java
Log:
Be consistent to const.

Modified: projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/vfs/BundleVFSContextFactory.java
===================================================================
--- projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/vfs/BundleVFSContextFactory.java	2009-11-10 16:54:15 UTC (rev 96224)
+++ projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/vfs/BundleVFSContextFactory.java	2009-11-10 16:55:53 UTC (rev 96225)
@@ -43,7 +43,7 @@
       init();
    }
 
-   private static final String HANDLER_PCKGS = "java.protocol.handler.pkgs";
+   private static final String HANDLER_PKGS = "java.protocol.handler.pkgs";
    private OSGiBundleManager manager;
 
    public BundleVFSContextFactory(OSGiBundleManager manager)
@@ -56,18 +56,18 @@
 
    public static void init()
    {
-      String pckg = BundleVFSContextFactory.class.getPackage().getName();
-      String pckgs = System.getProperty(HANDLER_PCKGS);
+      String pkg = BundleVFSContextFactory.class.getPackage().getName();
+      String pkgs = System.getProperty(HANDLER_PKGS);
 
-      if (pckgs == null || pckgs.trim().length() == 0)
+      if (pkgs == null || pkgs.trim().length() == 0)
       {
-         pckgs = pckg;
-         System.setProperty(HANDLER_PCKGS, pckgs);
+         pkgs = pkg;
+         System.setProperty(HANDLER_PKGS, pkgs);
       }
-      else if (pckgs.contains(pckg) == false)
+      else if (pkgs.contains(pkg) == false)
       {
-         pckgs += ("|" + pckg);
-         System.setProperty(HANDLER_PCKGS, pckgs);
+         pkgs += ("|" + pkg);
+         System.setProperty(HANDLER_PKGS, pkgs);
       }
    }
 




More information about the jboss-cvs-commits mailing list