Skip to content

Commit 4c606d4

Browse files
author
Rob Harrop
committed
Revert change to Appendable - much cleaner with StringBuilder
1 parent 7f135b3 commit 4c606d4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/com/rabbitmq/client/ContentHeader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ public interface ContentHeader extends Cloneable {
3838
* A debugging utility - enable properties to be appended to a string buffer for use as trace messages.
3939
* @param buffer a place to append the properties as a string
4040
*/
41-
public void appendPropertyDebugStringTo(Appendable buffer);
41+
public void appendPropertyDebugStringTo(StringBuilder buffer);
4242
}

src/com/rabbitmq/client/impl/AMQContentHeader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ private void writeTo(DataOutputStream out, long bodySize) throws IOException {
5858
public abstract void writePropertiesTo(ContentHeaderPropertyWriter writer) throws IOException;
5959

6060
/** Public API - {@inheritDoc} */
61-
public void appendPropertyDebugStringTo(Appendable acc) {
62-
try { acc.append("(?)"); } catch(IOException ioe) { }
61+
public void appendPropertyDebugStringTo(StringBuilder acc) {
62+
acc.append("(?)");
6363
}
6464

6565
@Override public String toString() {

src/com/rabbitmq/client/impl/Method.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ public abstract class Method implements com.rabbitmq.client.Method {
6363
* Public API - debugging utility
6464
* @param buffer the buffer to append debug data to
6565
*/
66-
public void appendArgumentDebugStringTo(Appendable buffer) {
67-
try { buffer.append("(?)");} catch(IOException ioe) { }
66+
public void appendArgumentDebugStringTo(StringBuilder buffer) {
67+
buffer.append("(?)");
6868
}
6969

7070
@Override public String toString() {

0 commit comments

Comments
 (0)