File tree Expand file tree Collapse file tree 2 files changed +4
-22
lines changed
main/java/redis/clients/jedis/args
test/java/redis/clients/jedis/modules/timeseries Expand file tree Collapse file tree 2 files changed +4
-22
lines changed Original file line number Diff line number Diff line change 3
3
import static redis .clients .jedis .Protocol .toByteArray ;
4
4
5
5
import java .util .Arrays ;
6
- import java .util .Objects ;
7
6
import redis .clients .jedis .util .SafeEncoder ;
8
7
9
8
/**
@@ -97,29 +96,12 @@ public int hashCode() {
97
96
/**
98
97
* A {@link Rawable} wrapping a {@link String}.
99
98
*/
100
- public static class RawString implements Rawable {
99
+ public static class RawString extends Raw {
101
100
102
- private final String str ;
101
+ // TODO: private final String str; ^ implements Rawable
103
102
104
103
public RawString (String str ) {
105
- this .str = str ;
106
- }
107
-
108
- @ Override
109
- public byte [] getRaw () {
110
- return SafeEncoder .encode (str );
111
- }
112
-
113
- @ Override
114
- public boolean equals (Object o ) {
115
- if (this == o ) return true ;
116
- if (o == null || getClass () != o .getClass ()) return false ;
117
- return Objects .equals (str , ((RawString ) o ).str );
118
- }
119
-
120
- @ Override
121
- public int hashCode () {
122
- return Objects .hash (str );
104
+ super (SafeEncoder .encode (str ));
123
105
}
124
106
}
125
107
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ public void testAdd() {
240
240
assertEquals (expectedOverallMaxValues , values );
241
241
242
242
// MRANGE
243
- // assertEquals(Collections.emptyMap(), client.tsMRange(TSMRangeParams.multiRangeParams().filter("l=v"))); // TODO: uncomment
243
+ assertEquals (Collections .emptyMap (), client .tsMRange (TSMRangeParams .multiRangeParams ().filter ("l=v" ))); // TODO: uncomment
244
244
try {
245
245
client .tsMRange (TSMRangeParams .multiRangeParams (500L , 4600L ).aggregation (AggregationType .COUNT , 1 ));
246
246
fail ();
You can’t perform that action at this time.
0 commit comments