Skip to content

Commit

Permalink
Minor. Declaring modifiers in correct order:
Browse files Browse the repository at this point in the history
The Java Language Specification and convention states that static ought to be
listed before the final modifier
(https://docs.oracle.com/javase/specs/jls/se11/html/jls-8.html#jls-8.1.1)
  • Loading branch information
ullenius committed Nov 20, 2019
1 parent 52b6fbe commit 5f01d7b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
10 changes: 0 additions & 10 deletions -

This file was deleted.

4 changes: 2 additions & 2 deletions src/main/java/redis/clients/jedis/ScanParams.java
Expand Up @@ -19,8 +19,8 @@ public class ScanParams {

private final Map<Keyword, ByteBuffer> params = new EnumMap<Keyword, ByteBuffer>(Keyword.class);

public final static String SCAN_POINTER_START = String.valueOf(0);
public final static byte[] SCAN_POINTER_START_BINARY = SafeEncoder.encode(SCAN_POINTER_START);
public static final String SCAN_POINTER_START = String.valueOf(0);
public static final byte[] SCAN_POINTER_START_BINARY = SafeEncoder.encode(SCAN_POINTER_START);

public ScanParams match(final byte[] pattern) {
params.put(MATCH, ByteBuffer.wrap(pattern));
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/redis/clients/jedis/ShardedJedisPipeline.java
Expand Up @@ -7,8 +7,8 @@

public class ShardedJedisPipeline extends PipelineBase {
private BinaryShardedJedis jedis;
private List<FutureResult> results = new ArrayList<FutureResult>();
private Queue<Client> clients = new LinkedList<Client>();
private List<FutureResult> results = new ArrayList<>();
private Queue<Client> clients = new LinkedList<>();

private static class FutureResult {
private Client client;
Expand Down

0 comments on commit 5f01d7b

Please sign in to comment.