Skip to content

Commit 335ed63

Browse files
author
David R. MacIver
committed
space before {
1 parent 50555ec commit 335ed63

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

src/com/rabbitmq/client/Channel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
*
6262
*/
6363

64-
public interface Channel extends ShutdownNotifier{
64+
public interface Channel extends ShutdownNotifier {
6565
/**
6666
* Retrieve this channel's channel number.
6767
* @return the channel number

src/com/rabbitmq/client/ShutdownSignalException.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* this exception.
4141
*/
4242

43-
public class ShutdownSignalException extends RuntimeException implements SensibleClone<ShutdownSignalException>{
43+
public class ShutdownSignalException extends RuntimeException implements SensibleClone<ShutdownSignalException> {
4444
/** True if the connection is shut down, or false if this signal refers to a channel */
4545
private final boolean _hardError;
4646

@@ -94,10 +94,10 @@ public ShutdownSignalException(boolean hardError,
9494
/** @return Reference to Connection or Channel object that fired the signal **/
9595
public Object getReference() { return _ref; }
9696

97-
public ShutdownSignalException sensibleClone(){
97+
public ShutdownSignalException sensibleClone() {
9898
try {
9999
return (ShutdownSignalException)super.clone();
100-
} catch (CloneNotSupportedException e){
100+
} catch (CloneNotSupportedException e) {
101101
// You've got to be kidding me
102102
throw new Error(e);
103103
}

src/com/rabbitmq/utility/Utility.java

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

4141
public class Utility {
42-
static class ThrowableCreatedElsewhere extends Throwable{
43-
public ThrowableCreatedElsewhere(Throwable throwable){
42+
static class ThrowableCreatedElsewhere extends Throwable {
43+
public ThrowableCreatedElsewhere(Throwable throwable) {
4444
super(throwable.getClass() + " created elsewhere");
4545
this.setStackTrace(throwable.getStackTrace());
4646
}
@@ -50,10 +50,10 @@ public ThrowableCreatedElsewhere(Throwable throwable){
5050
}
5151
}
5252

53-
public static <T extends Throwable & SensibleClone<T>> T fixStackTrace(T throwable){
53+
public static <T extends Throwable & SensibleClone<T>> T fixStackTrace(T throwable) {
5454
throwable = throwable.sensibleClone();
5555

56-
if(throwable.getCause() == null){
56+
if(throwable.getCause() == null) {
5757
// We'd like to preserve the original stack trace in the cause.
5858
// Unfortunately Java doesn't let you set the cause once it's been
5959
// set once. This means we have to choose between either
@@ -65,7 +65,7 @@ public static <T extends Throwable & SensibleClone<T>> T fixStackTrace(T throwab
6565
// doesn't matter too much.
6666
try {
6767
throwable.initCause(new ThrowableCreatedElsewhere(throwable));
68-
} catch(IllegalStateException e){
68+
} catch(IllegalStateException e) {
6969
// This exception was explicitly initialised with a null cause.
7070
// Alas this means we can't set the cause even though it has none.
7171
// Thanks.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@
3838

3939

4040
public class ValueOrExceptionTest extends TestCase {
41-
public static class InsufficientMagicException extends Exception implements SensibleClone<InsufficientMagicException>{
42-
public InsufficientMagicException(String message){
41+
public static class InsufficientMagicException extends Exception implements SensibleClone<InsufficientMagicException> {
42+
public InsufficientMagicException(String message) {
4343
super(message);
4444
}
4545

46-
public InsufficientMagicException sensibleClone(){
46+
public InsufficientMagicException sensibleClone() {
4747
return new InsufficientMagicException(getMessage());
4848
}
4949
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public static void main(String[] args) throws Exception {
213213
}
214214

215215

216-
public Results run() throws Exception{
216+
public Results run() throws Exception {
217217
Connection con = new ConnectionFactory().newConnection(params.host, params.port);
218218
Channel channel = con.createChannel();
219219

test/src/com/rabbitmq/client/test/server/DurableBindingLifecycle.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public void testDurableBindingRecovery() throws IOException {
7676

7777
restart();
7878

79-
for (int i = 0; i < N; i++){
79+
for (int i = 0; i < N; i++) {
8080
basicPublishVolatile(X, K);
8181
}
8282

@@ -113,7 +113,7 @@ public void testDurableBindingsDeletion() throws IOException {
113113

114114
declareDurableTopicExchange(X);
115115

116-
for (int i = 0; i < N; i++){
116+
for (int i = 0; i < N; i++) {
117117
basicPublishVolatile(X, K);
118118
}
119119

test/src/com/rabbitmq/examples/ManyConnections.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public void run() {
9090

9191
public static void runChannel(int threadNumber,
9292
Connection conn,
93-
Channel ch){
93+
Channel ch) {
9494
try {
9595
int delayLen = (int) (1000 / rate);
9696
long startTime = System.currentTimeMillis();

0 commit comments

Comments
 (0)