Author: sfermigier
Date: Sun Jun 14 17:03:57 2009
New Revision: 784585

URL: http://svn.apache.org/viewvc?rev=784585&view=rev
Log:
Cleanup code.


Modified:
    
incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/APPPropertyDefinition.java
    
incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/TypeEntryReader.java
    
incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/TypeFeedReader.java
    
incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/connector/HttpClientResponse.java
    
incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/stax/ServiceDocumentReader.java
    
incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/stax/ValueAdapter.java
    
incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/stax/XmlProperty.java
    
incubator/chemistry/trunk/chemistry/chemistry-commons/src/main/java/org/apache/chemistry/xml/stax/FilteredChildrenNavigator.java
    
incubator/chemistry/trunk/chemistry/chemistry-commons/src/main/java/org/apache/chemistry/xml/stax/StaxReader.java
    incubator/chemistry/trunk/chemistry/chemistry-jsclient/webroot/main.css

Modified: 
incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/APPPropertyDefinition.java
URL: 
http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/APPPropertyDefinition.java?rev=784585&r1=784584&r2=784585&view=diff
==============================================================================
--- 
incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/APPPropertyDefinition.java
 (original)
+++ 
incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/APPPropertyDefinition.java
 Sun Jun 14 17:03:57 2009
@@ -42,7 +42,7 @@
  */
 public class APPPropertyDefinition implements PropertyDefinition {
 
-    public final static Log log = 
LogFactory.getLog(APPPropertyDefinition.class);
+    public static final Log log = 
LogFactory.getLog(APPPropertyDefinition.class);
 
     protected Map<String, Object> map;
 

Modified: 
incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/TypeEntryReader.java
URL: 
http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/TypeEntryReader.java?rev=784585&r1=784584&r2=784585&view=diff
==============================================================================
--- 
incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/TypeEntryReader.java
 (original)
+++ 
incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/TypeEntryReader.java
 Sun Jun 14 17:03:57 2009
@@ -34,7 +34,7 @@
  */
 public class TypeEntryReader extends AbstractEntryReader<APPType> {
 
-    public final static TypeEntryReader INSTANCE = new TypeEntryReader();
+    public static final TypeEntryReader INSTANCE = new TypeEntryReader();
 
     @Override
     protected APPType createObject(ReadContext ctx) {

Modified: 
incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/TypeFeedReader.java
URL: 
http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/TypeFeedReader.java?rev=784585&r1=784584&r2=784585&view=diff
==============================================================================
--- 
incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/TypeFeedReader.java
 (original)
+++ 
incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/TypeFeedReader.java
 Sun Jun 14 17:03:57 2009
@@ -29,7 +29,7 @@
 public class TypeFeedReader extends
         AbstractFeedReader<Map<String, Type>, APPType> {
 
-    public final static TypeFeedReader INSTANCE = new TypeFeedReader();
+    public static final TypeFeedReader INSTANCE = new TypeFeedReader();
 
     public TypeFeedReader() {
         super(TypeEntryReader.INSTANCE);

Modified: 
incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/connector/HttpClientResponse.java
URL: 
http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/connector/HttpClientResponse.java?rev=784585&r1=784584&r2=784585&view=diff
==============================================================================
--- 
incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/connector/HttpClientResponse.java
 (original)
+++ 
incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/connector/HttpClientResponse.java
 Sun Jun 14 17:03:57 2009
@@ -37,9 +37,9 @@
  */
 public class HttpClientResponse implements Response {
 
-    final static int MIN_BUF_LEN = 32 * 1024;
+    static final int MIN_BUF_LEN = 32 * 1024;
 
-    final static int MAX_BUF_LEN = 128 * 1024;
+    static final int MAX_BUF_LEN = 128 * 1024;
 
     protected HttpMethod method;
 

Modified: 
incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/stax/ServiceDocumentReader.java
URL: 
http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/stax/ServiceDocumentReader.java?rev=784585&r1=784584&r2=784585&view=diff
==============================================================================
--- 
incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/stax/ServiceDocumentReader.java
 (original)
+++ 
incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/stax/ServiceDocumentReader.java
 Sun Jun 14 17:03:57 2009
@@ -21,6 +21,7 @@
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.Map;
+import java.util.List;
 
 import javax.xml.namespace.QName;
 import javax.xml.stream.XMLStreamException;
@@ -56,7 +57,7 @@
             if (!reader.fwdTag("service")) {
                 throw new IOException("Invalid APP service document");
             }
-            ArrayList<Repository> repos = new ArrayList<Repository>();
+            List<Repository> repos = new ArrayList<Repository>();
             ChildrenNavigator workspaces = reader.getChildren("workspace");
             while (workspaces.next()) {
                 T repo = createRepository(context);

Modified: 
incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/stax/ValueAdapter.java
URL: 
http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/stax/ValueAdapter.java?rev=784585&r1=784584&r2=784585&view=diff
==============================================================================
--- 
incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/stax/ValueAdapter.java
 (original)
+++ 
incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/stax/ValueAdapter.java
 Sun Jun 14 17:03:57 2009
@@ -266,7 +266,7 @@
 
     public static final ValueAdapter HTML = new HtmlValueAdapter();
 
-    private final static Map<Integer, ValueAdapter> adapters = new 
HashMap<Integer, ValueAdapter>();
+    private static final Map<Integer, ValueAdapter> adapters = new 
HashMap<Integer, ValueAdapter>();
     static {
         adapters.put(Integer.valueOf(PropertyType.STRING_ORD), STRING);
         adapters.put(Integer.valueOf(PropertyType.DECIMAL_ORD), DECIMAL);

Modified: 
incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/stax/XmlProperty.java
URL: 
http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/stax/XmlProperty.java?rev=784585&r1=784584&r2=784585&view=diff
==============================================================================
--- 
incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/stax/XmlProperty.java
 (original)
+++ 
incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/stax/XmlProperty.java
 Sun Jun 14 17:03:57 2009
@@ -34,7 +34,7 @@
 
     private static enum NoValue {
         NO_VALUE
-    };
+    }
 
     public static final Serializable NULL = NoValue.NO_VALUE;
 

Modified: 
incubator/chemistry/trunk/chemistry/chemistry-commons/src/main/java/org/apache/chemistry/xml/stax/FilteredChildrenNavigator.java
URL: 
http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-commons/src/main/java/org/apache/chemistry/xml/stax/FilteredChildrenNavigator.java?rev=784585&r1=784584&r2=784585&view=diff
==============================================================================
--- 
incubator/chemistry/trunk/chemistry/chemistry-commons/src/main/java/org/apache/chemistry/xml/stax/FilteredChildrenNavigator.java
 (original)
+++ 
incubator/chemistry/trunk/chemistry/chemistry-commons/src/main/java/org/apache/chemistry/xml/stax/FilteredChildrenNavigator.java
 Sun Jun 14 17:03:57 2009
@@ -38,8 +38,9 @@
     @Override
     public boolean next() throws XMLStreamException {
         while (super.next()) {
-            if (accept())
+            if (accept()) {
                 return true;
+            }
         }
         return false;
     }

Modified: 
incubator/chemistry/trunk/chemistry/chemistry-commons/src/main/java/org/apache/chemistry/xml/stax/StaxReader.java
URL: 
http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-commons/src/main/java/org/apache/chemistry/xml/stax/StaxReader.java?rev=784585&r1=784584&r2=784585&view=diff
==============================================================================
--- 
incubator/chemistry/trunk/chemistry/chemistry-commons/src/main/java/org/apache/chemistry/xml/stax/StaxReader.java
 (original)
+++ 
incubator/chemistry/trunk/chemistry/chemistry-commons/src/main/java/org/apache/chemistry/xml/stax/StaxReader.java
 Sun Jun 14 17:03:57 2009
@@ -32,7 +32,7 @@
  */
 public class StaxReader extends StreamReaderDelegate {
 
-    protected final static XMLInputFactory factory = 
XMLInputFactory.newInstance();
+    protected static final XMLInputFactory factory = 
XMLInputFactory.newInstance();
     static {
         factory.setProperty(XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES,
                 Boolean.FALSE);

Modified: 
incubator/chemistry/trunk/chemistry/chemistry-jsclient/webroot/main.css
URL: 
http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-jsclient/webroot/main.css?rev=784585&r1=784584&r2=784585&view=diff
==============================================================================
--- incubator/chemistry/trunk/chemistry/chemistry-jsclient/webroot/main.css 
(original)
+++ incubator/chemistry/trunk/chemistry/chemistry-jsclient/webroot/main.css Sun 
Jun 14 17:03:57 2009
@@ -1,7 +1,7 @@
 body {
        background: #eee url(bg-body.png) top center repeat-y;
        color: #333;
-       font-family: Georgia, Times New Roman;
+       font-family: Georgia, Times New Roman, serif;
        margin: 0 auto 0;
        padding: 0;
 }
@@ -38,7 +38,7 @@
 }
 
 .header a {
-       font-family: Helvetica, Verdana;
+       font-family: Helvetica, Verdana, sans-serif;
        letter-spacing: -1px;
        font-size: 31px;
        font-weight: bold;
@@ -107,7 +107,7 @@
 .content h1 {
        border-top: 2px solid olive;
        color: #58a;
-       font-family: Helvetica,Verdana;
+       font-family: Helvetica,Verdana,sans-serif;
        font-size: 18px;
        font-weight: bold;
        line-height: 20px;
@@ -130,7 +130,7 @@
 .content h2 {
        color: olive;
        font-size: 12px;
-       font-family: Helvetica, Verdana;
+       font-family: Helvetica, Verdana, sans-serif;
        font-weight: bold;
        margin: 20px 0 5px 0;
        padding: 3px 0 3px 0;


Reply via email to