isis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmatth...@apache.org
Subject svn commit: r1126156 - in /incubator/isis/trunk/runtimes/dflt/objectstores/nosql/src/main/java/org/apache/isis/runtimes/dflt/objectstores/nosql/file: ClientConnection.java server/ServerConnection.java
Date Sun, 22 May 2011 18:49:13 GMT
Author: rmatthews
Date: Sun May 22 18:49:12 2011
New Revision: 1126156

URL: http://svn.apache.org/viewvc?rev=1126156&view=rev
Log:
Attempt to fix tests when running on different platforms.

Modified:
    incubator/isis/trunk/runtimes/dflt/objectstores/nosql/src/main/java/org/apache/isis/runtimes/dflt/objectstores/nosql/file/ClientConnection.java
    incubator/isis/trunk/runtimes/dflt/objectstores/nosql/src/main/java/org/apache/isis/runtimes/dflt/objectstores/nosql/file/server/ServerConnection.java

Modified: incubator/isis/trunk/runtimes/dflt/objectstores/nosql/src/main/java/org/apache/isis/runtimes/dflt/objectstores/nosql/file/ClientConnection.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/runtimes/dflt/objectstores/nosql/src/main/java/org/apache/isis/runtimes/dflt/objectstores/nosql/file/ClientConnection.java?rev=1126156&r1=1126155&r2=1126156&view=diff
==============================================================================
--- incubator/isis/trunk/runtimes/dflt/objectstores/nosql/src/main/java/org/apache/isis/runtimes/dflt/objectstores/nosql/file/ClientConnection.java
(original)
+++ incubator/isis/trunk/runtimes/dflt/objectstores/nosql/src/main/java/org/apache/isis/runtimes/dflt/objectstores/nosql/file/ClientConnection.java
Sun May 22 18:49:12 2011
@@ -77,7 +77,7 @@ public class ClientConnection {
     }
 
     public void validateRequest() {
-        writer.println();
+        writer.print('\n');
         writer.flush();
         getReponseHeader();
         final String status = readNext();
@@ -107,11 +107,12 @@ public class ClientConnection {
     }
 
     public void endRequestSection() {
-        writer.println();
+        writer.print('\n');
     }
 
     private void write(final String req) {
-        writer.println(req);
+        writer.print(req);
+        writer.print('\n');
     }
 
     public void getReponseHeader() {

Modified: incubator/isis/trunk/runtimes/dflt/objectstores/nosql/src/main/java/org/apache/isis/runtimes/dflt/objectstores/nosql/file/server/ServerConnection.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/runtimes/dflt/objectstores/nosql/src/main/java/org/apache/isis/runtimes/dflt/objectstores/nosql/file/server/ServerConnection.java?rev=1126156&r1=1126155&r2=1126156&view=diff
==============================================================================
--- incubator/isis/trunk/runtimes/dflt/objectstores/nosql/src/main/java/org/apache/isis/runtimes/dflt/objectstores/nosql/file/server/ServerConnection.java
(original)
+++ incubator/isis/trunk/runtimes/dflt/objectstores/nosql/src/main/java/org/apache/isis/runtimes/dflt/objectstores/nosql/file/server/ServerConnection.java
Sun May 22 18:49:12 2011
@@ -158,27 +158,32 @@ public class ServerConnection {
      * }
      */
     public void notFound(final String message) {
-        writer.println("not-found");
-        writer.println(message);
+        writer.print("not-found");
+        writer.print('\n');
+        writer.print(message);
+        writer.print('\n');
         writer.flush();
     }
 
     public void error(final String message) {
-        writer.println("error");
-        writer.println(message);
+        writer.print("error");
+        writer.print('\n');
+        writer.print(message);
+        writer.print('\n');
         writer.flush();
     }
 
     public void error(final String message, final Exception exception) {
         error(message);
         exception.printStackTrace(writer);
-        writer.println();
-        writer.println();
+        writer.print('\n');
+        writer.print('\n');
         writer.flush();
     }
 
     private void write(final String result) {
-        writer.println(result);
+        writer.print(result);
+        writer.print('\n');
         writer.flush();
     }
 
@@ -223,7 +228,7 @@ public class ServerConnection {
     }
 
     public void endBlock() {
-        writer.println();
+        writer.print('\n');
     }
 
 }



Mime
View raw message