Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2003-01-30 14:54:02 +0000
committerMichael Valenta2003-01-30 14:54:02 +0000
commitdbd27756c595ae564d65f2287dd20cced3f165a6 (patch)
tree0939ba3a4b726c35b39dac2bb85b50326eb7568b
parentc91c05859ec97a9908d29c8940d05cc6067a0858 (diff)
downloadeclipse.platform.team-dbd27756c595ae564d65f2287dd20cced3f165a6.tar.gz
eclipse.platform.team-dbd27756c595ae564d65f2287dd20cced3f165a6.tar.xz
eclipse.platform.team-dbd27756c595ae564d65f2287dd20cced3f165a6.zip
30576: DBCS: DBCS project name cannot retrieve from CVS repository
-rw-r--r--bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/Connection.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/Connection.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/Connection.java
index a77aac70d..363f4859d 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/Connection.java
+++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/Connection.java
@@ -169,9 +169,9 @@ public class Connection {
* Sends the given string to the server.
*/
public void write(String s) throws CVSException {
- byte[] bytes = s.getBytes();
- write(bytes, 0, bytes.length, false);
+ write(s.getBytes(), false);
}
+
/**
* Sends the given bytes to the server.
*/
@@ -182,7 +182,7 @@ public class Connection {
* Sends the given string and a newline to the server.
*/
public void writeLine(String s) throws CVSException {
- write(s.getBytes(), 0, s.length(), true);
+ write(s.getBytes(), true);
}
/**
* Sends the given bytes and a newline to the server.
@@ -190,6 +190,11 @@ public class Connection {
public void writeLine(byte[] b, int off, int len) throws CVSException {
write(b, off, len, true);
}
+
+ void write (byte[] bytes, boolean newLine) throws CVSException {
+ write(bytes, 0, bytes.length, newLine);
+ }
+
/**
* Low level method to write a string to the server. All write* methods are
* funneled through this method.

Back to the top