You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by hs...@apache.org on 2011/05/19 20:42:34 UTC

svn commit: r1125049 - in /shindig/trunk/java/common/src/main/java/org/apache/shindig/common: PropertiesModule.java servlet/GuiceServletContextListener.java

Author: hsaputra
Date: Thu May 19 18:42:34 2011
New Revision: 1125049

URL: http://svn.apache.org/viewvc?rev=1125049&view=rev
Log:
Small cleanups on spaces


Modified:
    shindig/trunk/java/common/src/main/java/org/apache/shindig/common/PropertiesModule.java
    shindig/trunk/java/common/src/main/java/org/apache/shindig/common/servlet/GuiceServletContextListener.java

Modified: shindig/trunk/java/common/src/main/java/org/apache/shindig/common/PropertiesModule.java
URL: http://svn.apache.org/viewvc/shindig/trunk/java/common/src/main/java/org/apache/shindig/common/PropertiesModule.java?rev=1125049&r1=1125048&r2=1125049&view=diff
==============================================================================
--- shindig/trunk/java/common/src/main/java/org/apache/shindig/common/PropertiesModule.java (original)
+++ shindig/trunk/java/common/src/main/java/org/apache/shindig/common/PropertiesModule.java Thu May 19 18:42:34 2011
@@ -97,11 +97,11 @@ public class PropertiesModule extends Ab
   }
 
   protected static String getDefaultPropertiesPath() {
-      return DEFAULT_PROPERTIES;
+    return DEFAULT_PROPERTIES;
   }
 
   protected Properties getProperties() {
-      return properties;
+    return properties;
   }
 
   

Modified: shindig/trunk/java/common/src/main/java/org/apache/shindig/common/servlet/GuiceServletContextListener.java
URL: http://svn.apache.org/viewvc/shindig/trunk/java/common/src/main/java/org/apache/shindig/common/servlet/GuiceServletContextListener.java?rev=1125049&r1=1125048&r2=1125049&view=diff
==============================================================================
--- shindig/trunk/java/common/src/main/java/org/apache/shindig/common/servlet/GuiceServletContextListener.java (original)
+++ shindig/trunk/java/common/src/main/java/org/apache/shindig/common/servlet/GuiceServletContextListener.java Thu May 19 18:42:34 2011
@@ -50,7 +50,6 @@ public class GuiceServletContextListener
   // HNN- constant name matched system.properties <contextparam> specified in the web.xml
   private static final String SYSTEM_PROPERTIES = "system.properties";
 
-  private String contextRoot = "";
   public void contextInitialized(ServletContextEvent event) {
     ServletContext context = event.getServletContext();
 	
@@ -104,13 +103,13 @@ public class GuiceServletContextListener
    * @param context the ServletContext
    */
   private void setSystemProperties(ServletContext context){
-	try{
-	  contextRoot = context.getContextPath();
-	}
-	catch(Exception e){
-	  contextRoot= "";
-	}
-	System.setProperty("shindig.contextroot", contextRoot);
+    String contextRoot = "";
+    try {
+      contextRoot = context.getContextPath();
+    } catch (Exception e) {
+      contextRoot = "";
+    }
+    System.setProperty("shindig.contextroot", contextRoot);
     String systemProperties = context.getInitParameter(SYSTEM_PROPERTIES);
     String key=null;
     String value=null;