incubator-droids-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject svn commit: r1461976 - in /incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/core: AbstractData.java ContentEntity.java Data.java
Date Thu, 28 Mar 2013 08:26:42 GMT
Author: tobr
Date: Thu Mar 28 08:26:42 2013
New Revision: 1461976

URL: http://svn.apache.org/r1461976
Log:
changed names to array of strings

Modified:
    incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/core/AbstractData.java
    incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/core/ContentEntity.java
    incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/core/Data.java

Modified: incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/core/AbstractData.java
URL: http://svn.apache.org/viewvc/incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/core/AbstractData.java?rev=1461976&r1=1461975&r2=1461976&view=diff
==============================================================================
--- incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/core/AbstractData.java
(original)
+++ incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/core/AbstractData.java
Thu Mar 28 08:26:42 2013
@@ -34,7 +34,7 @@ public abstract class AbstractData imple
     }
 
     @Override
-    public Object[] names() {
+    public String[] names() {
         return data.keySet().toArray(new String[data.keySet().size()]);
     }
 

Modified: incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/core/ContentEntity.java
URL: http://svn.apache.org/viewvc/incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/core/ContentEntity.java?rev=1461976&r1=1461975&r2=1461976&view=diff
==============================================================================
--- incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/core/ContentEntity.java
(original)
+++ incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/core/ContentEntity.java
Thu Mar 28 08:26:42 2013
@@ -87,7 +87,9 @@ public class ContentEntity extends Abstr
      * @return the length of the content.
      */
     public long getContentLength() throws NumberFormatException {
-        return Long.parseLong((String) this.get(CONTENT_LENGTH));
+        return (this.get(CONTENT_LENGTH) != null) ?
+                Long.parseLong((String) this.get(CONTENT_LENGTH)) :
+                0;
     }
 
     /**

Modified: incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/core/Data.java
URL: http://svn.apache.org/viewvc/incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/core/Data.java?rev=1461976&r1=1461975&r2=1461976&view=diff
==============================================================================
--- incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/core/Data.java
(original)
+++ incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/core/Data.java
Thu Mar 28 08:26:42 2013
@@ -28,7 +28,7 @@ public interface Data {
      *
      * @return data names
      */
-    public Object[] names();
+    public String[] names();
 
     /**
      * Set data name/value. Associate the specified value to the specified



Mime
View raw message