You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by lu...@apache.org on 2004/11/08 10:33:28 UTC

cvs commit: jakarta-slide/src/share/org/apache/slide/content NodeRevisionDescriptor.java

luetzkendorf    2004/11/08 01:33:28

  Modified:    src/share/org/apache/slide/content
                        NodeRevisionDescriptor.java
  Log:
  replaced new String() with ""
  
  Revision  Changes    Path
  1.39      +12 -12    jakarta-slide/src/share/org/apache/slide/content/NodeRevisionDescriptor.java
  
  Index: NodeRevisionDescriptor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/share/org/apache/slide/content/NodeRevisionDescriptor.java,v
  retrieving revision 1.38
  retrieving revision 1.39
  diff -u -r1.38 -r1.39
  --- NodeRevisionDescriptor.java	26 Sep 2004 14:54:54 -0000	1.38
  +++ NodeRevisionDescriptor.java	8 Nov 2004 09:33:28 -0000	1.39
  @@ -579,7 +579,7 @@
       public String getName() {
           NodeProperty name = getProperty(NAME);
           if (name == null) {
  -            return new String();
  +            return "";
           } else {
               return (String) name.getValue();
           }
  @@ -604,7 +604,7 @@
       public String getETag() {
           NodeProperty contentType = getProperty(ETAG);
           if (contentType == null) {
  -            return new String();
  +            return "";
           } else {
               return (String) contentType.getValue();
           }
  @@ -665,7 +665,7 @@
       public String getSource() {
           NodeProperty source = getProperty(SOURCE);
           if (source == null) {
  -            return new String();
  +            return "";
           } else {
               return (String) source.getValue();
           }
  @@ -694,7 +694,7 @@
       public String getResourceType() {
           NodeProperty resourceType = getProperty(RESOURCE_TYPE);
           if (resourceType == null) {
  -            return new String();
  +            return "";
           } else {
   //            return (String) resourceType.getValue();
               return String.valueOf(resourceType.getValue());
  @@ -723,7 +723,7 @@
       public String getContentType() {
           NodeProperty contentType = getProperty(CONTENT_TYPE);
           if (contentType == null) {
  -            return new String();
  +            return "";
           } else {
               return (String) contentType.getValue();
           }
  @@ -748,7 +748,7 @@
       public String getContentLanguage() {
           NodeProperty contentLanguage = getProperty(CONTENT_LANGUAGE);
           if (contentLanguage == null) {
  -            return new String();
  +            return "";
           } else {
               return (String) contentLanguage.getValue();
           }
  @@ -811,7 +811,7 @@
       public String getCreationUser() {
           NodeProperty creationUser = getProperty(CREATION_USER);
           if (creationUser == null) {
  -            return new String();
  +            return "";
           } else {
               return (String) creationUser.getValue();
           }
  @@ -826,7 +826,7 @@
       public String getModificationUser() {
           NodeProperty modificationUser = getProperty(MODIFICATION_USER);
           if (modificationUser == null) {
  -            return new String();
  +            return "";
           } else {
               return (String) modificationUser.getValue();
           }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org