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 11:13:19 UTC
cvs commit: jakarta-slide/src/webdav/server/org/apache/slide/webdav/method PropFindMethod.java
luetzkendorf 2004/11/08 02:13:19
Modified: src/webdav/server/org/apache/slide/webdav/method
PropFindMethod.java
Log:
removed usage of String (String) ctor
Revision Changes Path
1.108 +7 -9 jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/PropFindMethod.java
Index: PropFindMethod.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/PropFindMethod.java,v
retrieving revision 1.107
retrieving revision 1.108
diff -u -r1.107 -r1.108
--- PropFindMethod.java 26 Oct 2004 20:06:01 -0000 1.107
+++ PropFindMethod.java 8 Nov 2004 10:13:19 -0000 1.108
@@ -448,9 +448,8 @@
Element responseElement = new Element(E_RESPONSE, DNSP);
- String status = new String(HTTP_VERSION + WebdavStatus.SC_OK + " "
- + WebdavStatus.getStatusText
- (WebdavStatus.SC_OK));
+ String status = HTTP_VERSION + " " + WebdavStatus.SC_OK + " "
+ + WebdavStatus.getStatusText(WebdavStatus.SC_OK);
NodeRevisionDescriptors revisionDescriptors = null;
NodeRevisionDescriptor revisionDescriptor = null;
@@ -536,9 +535,8 @@
case FIND_PROPERTY_NAMES :
try {
- status = new String("HTTP/1.1 " + WebdavStatus.SC_OK
- + " " + WebdavStatus.getStatusText
- (WebdavStatus.SC_OK));
+ status = HTTP_VERSION + " " + WebdavStatus.SC_OK + " "
+ + WebdavStatus.getStatusText(WebdavStatus.SC_OK);
Element propstatElement = new Element(E_PROPSTAT, DNSP);
Element propElement = new Element(E_PROP, DNSP);
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org