Skip to content

Commit b7f4703

Browse files
authored
Fixed some typos and formatting issues across the project (#3486)
Signed-off-by: Sergii Dotsenko <sergii.dotsenko@ericsson.com>
1 parent 9483063 commit b7f4703

15 files changed

+31
-31
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ The most recent version of this library supports redis version [5.0](https://git
2929

3030
The table below highlights version compatibility of the most-recent library versions and Redis versions. Compatibility means communication features, and Redis command capabilities.
3131

32-
| Library version | Supported redis versions |
33-
|-----------------|-------------------|
34-
| 3.9+ | 5.0 and 6.2 Family of releases |
35-
| >= 4.0 | Version 5.0 to current |
32+
| Library version | Supported redis versions |
33+
|-----------------|--------------------------------|
34+
| 3.9+ | 5.0 and 6.2 Family of releases |
35+
| >= 4.0 | Version 5.0 to current |
3636

3737
## Getting started
3838

@@ -78,7 +78,7 @@ for the complete list of supported commands.
7878

7979
### Easier way of using connection pool
8080

81-
Using a *try-with-resources* block for each command may be cumbursome, so you may consider using JedisPooled.
81+
Using a *try-with-resources* block for each command may be cumbersome, so you may consider using JedisPooled.
8282

8383
```java
8484
JedisPooled jedis = new JedisPooled("localhost", 6379);

src/main/java/redis/clients/jedis/StreamEntryID.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ public int hashCode() {
5555

5656
@Override
5757
public int compareTo(StreamEntryID other) {
58-
int timeComapre = Long.compare(this.time, other.time);
59-
return timeComapre != 0 ? timeComapre : Long.compare(this.sequence, other.sequence);
58+
int timeCompare = Long.compare(this.time, other.time);
59+
return timeCompare != 0 ? timeCompare : Long.compare(this.sequence, other.sequence);
6060
}
6161

6262
public long getTime() {

src/main/java/redis/clients/jedis/commands/ServerCommands.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public interface ServerCommands {
7070
* The SAVE commands performs a synchronous save of the dataset producing a point in time snapshot
7171
* of all the data inside the Redis instance, in the form of an RDB file. You almost never want to
7272
* call SAVE in production environments where it will block all the other clients. Instead usually
73-
* BGSAVE is used. However in case of issues preventing Redis to create the background saving
73+
* BGSAVE is used. However, in case of issues preventing Redis to create the background saving
7474
* child (for instance errors in the fork(2) system call), the SAVE command can be a good last
7575
* resort to perform the dump of the latest dataset.
7676
* @return result of the save

src/main/java/redis/clients/jedis/params/MigrateParams.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class MigrateParams implements IParams {
88
private boolean copy = false;
99
private boolean replace = false;
1010
private String username = null;
11-
private String passowrd = null;
11+
private String password = null;
1212

1313
public MigrateParams() {
1414
}
@@ -28,13 +28,13 @@ public MigrateParams replace() {
2828
}
2929

3030
public MigrateParams auth(String password) {
31-
this.passowrd = password;
31+
this.password = password;
3232
return this;
3333
}
3434

3535
public MigrateParams auth2(String username, String password) {
3636
this.username = username;
37-
this.passowrd = password;
37+
this.password = password;
3838
return this;
3939
}
4040

@@ -47,9 +47,9 @@ public void addParams(CommandArguments args) {
4747
args.add(Keyword.REPLACE);
4848
}
4949
if (username != null) {
50-
args.add(Keyword.AUTH2).add(username).add(passowrd);
51-
} else if (passowrd != null) {
52-
args.add(Keyword.AUTH).add(passowrd);
50+
args.add(Keyword.AUTH2).add(username).add(password);
51+
} else if (password != null) {
52+
args.add(Keyword.AUTH).add(password);
5353
}
5454
}
5555
}

src/main/java/redis/clients/jedis/params/ZAddParams.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
public class ZAddParams implements IParams {
77

8-
private Keyword existance;
8+
private Keyword existence;
99
private Keyword comparison;
1010
private boolean change;
1111

@@ -21,16 +21,16 @@ public static ZAddParams zAddParams() {
2121
* @return ZAddParams
2222
*/
2323
public ZAddParams nx() {
24-
this.existance = Keyword.NX;
24+
this.existence = Keyword.NX;
2525
return this;
2626
}
2727

2828
/**
29-
* Only set the key if it already exist.
29+
* Only set the key if it already exists.
3030
* @return ZAddParams
3131
*/
3232
public ZAddParams xx() {
33-
this.existance = Keyword.XX;
33+
this.existence = Keyword.XX;
3434
return this;
3535
}
3636

@@ -64,8 +64,8 @@ public ZAddParams ch() {
6464

6565
@Override
6666
public void addParams(CommandArguments args) {
67-
if (existance != null) {
68-
args.add(existance);
67+
if (existence != null) {
68+
args.add(existence);
6969
}
7070
if (comparison != null) {
7171
args.add(comparison);

src/main/java/redis/clients/jedis/resps/AccessControlLogEntry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
/**
88
* This class holds information about an Access Control Log entry (returned by ACL LOG command) They
9-
* can be access via getters. For future purpose there is also {@link #getlogEntry} method that
9+
* can be accessed via getters. For future purpose there is also {@link #getlogEntry} method that
1010
* returns a generic {@code Map} - in case where more info is returned from a server
1111
*/
1212
// TODO: remove

src/main/java/redis/clients/jedis/resps/StreamConsumerFullInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
/**
99
* This class holds information about a stream consumer with command
10-
* {@code xinfo stream mystream full}. They can be access via getters. There is also
10+
* {@code xinfo stream mystream full}. They can be accessed via getters. There is also
1111
* {@link StreamConsumerFullInfo#getConsumerInfo()} method that returns a generic {@link Map} in
1212
* case more info are returned from the server.
1313
*/

src/main/java/redis/clients/jedis/resps/StreamConsumerInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import java.util.Map;
44

55
/**
6-
* This class holds information about a consumer. They can be access via getters. There is also
6+
* This class holds information about a consumer. They can be accessed via getters. There is also
77
* {@link StreamConsumersInfo#getConsumerInfo()}} method that returns a generic {@code Map} in case
88
* more info are returned from the server.
99
*/

src/main/java/redis/clients/jedis/resps/StreamConsumersInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import java.util.Map;
44

55
/**
6-
* This class holds information about a consumer. They can be access via getters. There is also
6+
* This class holds information about a consumer. They can be accessed via getters. There is also
77
* {@link StreamConsumersInfo#getConsumerInfo()}} method that returns a generic {@code Map} in case
88
* more info are returned from the server.
99
* @deprecated Use {@link StreamConsumerInfo}.

src/main/java/redis/clients/jedis/resps/StreamFullInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
/**
1010
* This class holds information about a stream info with command {@code xinfo stream mystream full}.
11-
* They can be access via getters. There is also {@link StreamFullInfo#getStreamFullInfo()} method
11+
* They can be accessed via getters. There is also {@link StreamFullInfo#getStreamFullInfo()} method
1212
* that returns a generic {@link Map} in case where more info are returned from the server.
1313
*/
1414
public class StreamFullInfo implements Serializable {

0 commit comments

Comments
 (0)