Skip to content

Commit 9db458c

Browse files
committed
Replace tabs with spaces
1 parent 6b47cc4 commit 9db458c

File tree

3 files changed

+34
-34
lines changed

3 files changed

+34
-34
lines changed

src/main/java/com/pusher/client/PusherOptions.java

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class PusherOptions {
1212

1313
private static final String SRC_LIB_DEV_VERSION = "@version@";
1414
private static final String LIB_DEV_VERSION = "0.0.0-dev";
15-
public static final String LIB_VERSION = readVersionFromProperties();
15+
public static final String LIB_VERSION = readVersionFromProperties();
1616

1717
private static final String URI_SUFFIX = "?client=java-client&protocol=5&version=" + LIB_VERSION;
1818
private static final String WS_SCHEME = "ws";
@@ -205,27 +205,27 @@ public PusherOptions setPongTimeout(final long pongTimeout) {
205205
/**
206206
* Number of reconnect attempts when websocket connection failed
207207
* @param maxReconnectionAttempts
208-
* number of max reconnection attempts, default = {@link #MAX_RECONNECTION_ATTEMPTS} 6
208+
* number of max reconnection attempts, default = {@link #MAX_RECONNECTION_ATTEMPTS} 6
209209
* @return this, for chaining
210210
*/
211211
public PusherOptions setMaxReconnectionAttempts(int maxReconnectionAttempts) {
212212
this.maxReconnectionAttempts = maxReconnectionAttempts;
213213
return this;
214214
}
215215

216-
/**
217-
* The delay in two reconnection extends exponentially (1, 2, 4, .. seconds) This property sets the maximum in between two
218-
* reconnection attempts.
219-
* @param maxReconnectGapInSeconds
220-
* time in seconds of the maximum gab between two reconnection attempts, default = {@link #MAX_RECONNECT_GAP_IN_SECONDS} 30s
221-
* @return this, for chaining
222-
*/
223-
public PusherOptions setMaxReconnectGapInSeconds(int maxReconnectGapInSeconds) {
224-
this.maxReconnectGapInSeconds = maxReconnectGapInSeconds;
225-
return this;
226-
}
227-
228-
public long getPongTimeout() {
216+
/**
217+
* The delay in two reconnection extends exponentially (1, 2, 4, .. seconds) This property sets the maximum in between two
218+
* reconnection attempts.
219+
* @param maxReconnectGapInSeconds
220+
* time in seconds of the maximum gab between two reconnection attempts, default = {@link #MAX_RECONNECT_GAP_IN_SECONDS} 30s
221+
* @return this, for chaining
222+
*/
223+
public PusherOptions setMaxReconnectGapInSeconds(int maxReconnectGapInSeconds) {
224+
this.maxReconnectGapInSeconds = maxReconnectGapInSeconds;
225+
return this;
226+
}
227+
228+
public long getPongTimeout() {
229229
return pongTimeout;
230230
}
231231

@@ -264,21 +264,21 @@ public Proxy getProxy() {
264264
return this.proxy;
265265
}
266266

267-
/**
268-
* @return the maximum reconnection attempts
269-
*/
270-
public int getMaxReconnectionAttempts() {
271-
return maxReconnectionAttempts;
272-
}
273-
274-
/**
275-
* @return the maximum reconnection gap in seconds
276-
*/
277-
public int getMaxReconnectGapInSeconds() {
278-
return maxReconnectGapInSeconds;
279-
}
280-
281-
private static String readVersionFromProperties() {
267+
/**
268+
* @return the maximum reconnection attempts
269+
*/
270+
public int getMaxReconnectionAttempts() {
271+
return maxReconnectionAttempts;
272+
}
273+
274+
/**
275+
* @return the maximum reconnection gap in seconds
276+
*/
277+
public int getMaxReconnectGapInSeconds() {
278+
return maxReconnectGapInSeconds;
279+
}
280+
281+
private static String readVersionFromProperties() {
282282
InputStream inStream = null;
283283
try {
284284
final Properties p = new Properties();
@@ -290,7 +290,7 @@ private static String readVersionFromProperties() {
290290
// from source then replace with a dev indicator. Otherwise the Pusher
291291
// Socket API will reject the connection.
292292
if(version.equals(SRC_LIB_DEV_VERSION)) {
293-
version = LIB_DEV_VERSION;
293+
version = LIB_DEV_VERSION;
294294
}
295295

296296
if (version != null && version.length() > 0) {

src/main/java/com/pusher/client/connection/ConnectionStateChange.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ public class ConnectionStateChange {
2121
public ConnectionStateChange(final ConnectionState previousState, final ConnectionState currentState) {
2222

2323
if (previousState == currentState) {
24-
log.fine("Attempted to create an connection state update where both previous and current state are: "
25-
+ currentState);
24+
log.fine("Attempted to create an connection state update where both previous and current state are: "
25+
+ currentState);
2626
}
2727

2828
this.previousState = previousState;

src/test/java/com/pusher/client/EndToEndTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public void setUp() throws Exception {
6161
pusherOptions = new PusherOptions().setAuthorizer(mockAuthorizer).setEncrypted(false);
6262

6363
connection = new WebSocketConnection(pusherOptions.buildUrl(API_KEY), ACTIVITY_TIMEOUT, PONG_TIMEOUT, pusherOptions.getMaxReconnectionAttempts(),
64-
pusherOptions.getMaxReconnectGapInSeconds(), proxy, factory);
64+
pusherOptions.getMaxReconnectGapInSeconds(), proxy, factory);
6565

6666
doAnswer(new Answer() {
6767
@Override

0 commit comments

Comments
 (0)