Skip to content

Commit 88ac53d

Browse files
author
David R. MacIver
committed
fix trailing spaces
1 parent 3f0dd53 commit 88ac53d

File tree

7 files changed

+29
-29
lines changed

7 files changed

+29
-29
lines changed

src/com/rabbitmq/client/Channel.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -77,35 +77,35 @@ public interface Channel extends ShutdownNotifier{
7777
/**
7878
* Close this channel with the {@link com.rabbitmq.client.AMQP#REPLY_SUCCESS} close code
7979
* and message 'OK'.
80-
*
80+
*
8181
* @throws java.io.IOException if an error is encountered
8282
*/
8383
void close() throws IOException;
84-
84+
8585
/**
8686
* Close this channel.
87-
*
87+
*
8888
* @param closeCode the close code (See under "Reply Codes" in the AMQP specification)
8989
* @param closeMessage a message indicating the reason for closing the connection
9090
* @throws java.io.IOException if an error is encountered
9191
*/
9292
void close(int closeCode, String closeMessage) throws IOException;
93-
93+
9494
/**
9595
* Abort this channel with the {@link com.rabbitmq.client.AMQP#REPLY_SUCCESS} close code
9696
* and message 'OK'.
97-
*
97+
*
9898
* Forces the channel to close and waits for the close operation to complete.
9999
* Any encountered exceptions in the close operation are silently discarded.
100100
*/
101101
void abort() throws IOException;
102-
102+
103103
/**
104104
* Abort this channel.
105-
*
105+
*
106106
* Forces the channel to close and waits for the close operation to complete.
107107
* Any encountered exceptions in the close operation are silently discarded.
108-
*/
108+
*/
109109
void abort(int closeCode, String closeMessage) throws IOException;
110110

111111
/**
@@ -254,7 +254,7 @@ Exchange.DeclareOk exchangeDeclare(String exchange, String type, boolean passive
254254
* @throws java.io.IOException if an error is encountered
255255
*/
256256
Queue.DeclareOk queueDeclare(String queue) throws IOException;
257-
257+
258258
/**
259259
* Actively declare a non-exclusive, non-autodelete queue
260260
* The name of the new queue is held in the "queue" field of the {@link com.rabbitmq.client.AMQP.Queue.DeclareOk} result.
@@ -329,7 +329,7 @@ Queue.DeclareOk queueDeclare(String queue, boolean passive, boolean durable, boo
329329
* @throws java.io.IOException if an error is encountered
330330
*/
331331
Queue.BindOk queueBind(String queue, String exchange, String routingKey, Map<String, Object> arguments) throws IOException;
332-
332+
333333
/**
334334
* Unbinds a queue from an exchange, with no extra arguments.
335335
* @see com.rabbitmq.client.AMQP.Queue.Unbind
@@ -370,7 +370,7 @@ Queue.DeclareOk queueDeclare(String queue, boolean passive, boolean durable, boo
370370
* @see com.rabbitmq.client.AMQP.Queue.Purge
371371
* @see com.rabbitmq.client.AMQP.Queue.PurgeOk
372372
* @param queue the name of the queue
373-
* @param nowait whether to await completion of the purge
373+
* @param nowait whether to await completion of the purge
374374
* @return a purge-confirm method if the purge was executed succesfully
375375
* @throws java.io.IOException if an error is encountered
376376
*/

src/com/rabbitmq/tools/Tracer.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,26 +79,26 @@ private static class AsyncLogger extends Thread{
7979
final BlockingQueue<Object> queue = new ArrayBlockingQueue<Object>(LOG_QUEUE_SIZE, true);
8080
AsyncLogger(PrintStream ps){
8181
this.ps = new PrintStream(new BufferedOutputStream(ps, BUFFER_SIZE), false);
82-
start();
82+
start();
8383

8484
new Thread(){
8585
@Override public void run(){
8686
while(true){
87-
try {
88-
Thread.sleep(MAX_TIME_BETWEEN_FLUSHES);
87+
try {
88+
Thread.sleep(MAX_TIME_BETWEEN_FLUSHES);
8989
queue.add(FLUSH);
9090
} catch(InterruptedException e) { }
9191
}
92-
92+
9393
}
94-
}.start();
94+
}.start();
9595
}
9696

9797
void printMessage(Object message){
9898
if(message instanceof Throwable){
99-
((Throwable)message).printStackTrace(ps);
99+
((Throwable)message).printStackTrace(ps);
100100
} else if (message instanceof String){
101-
ps.println(message);
101+
ps.println(message);
102102
} else {
103103
throw new RuntimeException("Unrecognised object " + message);
104104
}
@@ -116,13 +116,13 @@ void printMessage(Object message){
116116
}
117117

118118
void log(Object message){
119-
try {
119+
try {
120120
queue.put(message);
121121
} catch(InterruptedException ex){
122122
throw new RuntimeException(ex);
123123
}
124124
}
125-
}
125+
}
126126

127127
public static void main(String[] args) {
128128
int listenPort = args.length > 0 ? Integer.parseInt(args[0]) : 5673;
@@ -179,7 +179,7 @@ public Tracer(Socket sock, int id, String host, int port, AsyncLogger logger) th
179179
this.ios = new DataOutputStream(inSock.getOutputStream());
180180
this.ois = new DataInputStream(outSock.getInputStream());
181181
this.oos = new DataOutputStream(outSock.getOutputStream());
182-
this.logger = logger;
182+
this.logger = logger;
183183

184184
new Thread(this).start();
185185
}
@@ -297,7 +297,7 @@ public void doFrame() throws IOException {
297297
AMQCommand cmd = c.handleFrame(f);
298298
if (cmd != null) {
299299
report(f.channel, cmd);
300-
assemblers.remove(f.channel);
300+
assemblers.remove(f.channel);
301301
}
302302
}
303303
}

src/com/rabbitmq/utility/BlockingValueOrException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public void setException(E e) {
4646
public V uninterruptibleGetValue() throws E {
4747
return uninterruptibleGet().getValue();
4848
}
49-
49+
5050
public V uninterruptibleGetValue(int timeout) throws E, TimeoutException {
5151
return uninterruptibleGet(timeout).getValue();
5252
}

src/com/rabbitmq/utility/Utility.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
*/
4040

4141
public class Utility {
42-
42+
4343
public static String makeStackTrace(Throwable throwable) {
4444
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
4545
PrintStream printStream = new PrintStream(outputStream);
@@ -49,7 +49,7 @@ public static String makeStackTrace(Throwable throwable) {
4949
try {
5050
outputStream.close();
5151
} catch (IOException ex) {
52-
// Closing the output stream won't generate an error, and in
52+
// Closing the output stream won't generate an error, and in
5353
// fact does nothing - just being tidy
5454
ex.printStackTrace();
5555
}

src/com/rabbitmq/utility/ValueOrException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class ValueOrException<V, E extends Throwable> {
3434
private final boolean _useValue;
3535
private final V _value;
3636
private final E _exception;
37-
37+
3838
/**
3939
* dual-purpose private constructor: one will be null, and the flag tells which to use
4040
* @param value the value to wrap, if applicable
@@ -69,7 +69,7 @@ public static <V, E extends Throwable> ValueOrException<V, E> makeValue(V value)
6969
public static <V, E extends Throwable> ValueOrException<V, E> makeException(E exception) {
7070
return new ValueOrException<V, E>(null, exception, false);
7171
}
72-
72+
7373
/** Retrieve value or throw exception
7474
* @return the wrapped value, if it's a value
7575
* @throws E the wrapped exception, if it's an exception

test/src/com/rabbitmq/client/test/ValueOrExceptionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static TestSuite suite()
4949
public void testStoresValue() throws IOException {
5050
Integer value = new Integer(3);
5151
ValueOrException<Integer, IOException> valueOrEx = ValueOrException.<Integer, IOException>makeValue(value);
52-
52+
5353
Integer returnedValue = valueOrEx.getValue();
5454
assertTrue(returnedValue == value);
5555
}

test/src/com/rabbitmq/client/test/performance/ScalabilityTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public void print(final int base, final String prefix)
144144
s.close();
145145
s = open(prefix, "deletion");
146146
print(s, base, deletionTimes);
147-
s.close();
147+
s.close();
148148
s = open(prefix, "routing");
149149
print(s, base, transpose(routingTimes));
150150
s.close();

0 commit comments

Comments
 (0)