Skip to content

Commit 306c534

Browse files
committed
Merge pull request #1127 from mjtieman/Issue-1126
Issue-1126: Make HostAndPort implement Serializable
2 parents 50e8d34 + b6d9441 commit 306c534

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
package redis.clients.jedis;
22

3-
public class HostAndPort {
4-
public static final String LOCALHOST_STR = "localhost";
3+
import java.io.Serializable;
4+
5+
public class HostAndPort implements Serializable {
6+
private static final long serialVersionUID = -519876229978427751L;
7+
8+
public static final String LOCALHOST_STR = "localhost";
59

610
private String host;
711
private int port;

0 commit comments

Comments
 (0)