Skip to content

Commit 4da17f0

Browse files
committed
DATAREDIS-1263 - Include proper import statements.
To ensure Kotlin builds work properly, certain types need explicit import statements.
1 parent e6c18c4 commit 4da17f0

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
lines changed

src/main/java/org/springframework/data/redis/core/ReactiveStreamOperations.java

+13-2
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,24 @@
2222
import java.util.Map;
2323

2424
import org.reactivestreams.Publisher;
25-
2625
import org.springframework.data.domain.Range;
2726
import org.springframework.data.redis.connection.RedisZSetCommands.Limit;
28-
import org.springframework.data.redis.connection.stream.*;
27+
import org.springframework.data.redis.connection.stream.ByteBufferRecord;
28+
import org.springframework.data.redis.connection.stream.Consumer;
29+
import org.springframework.data.redis.connection.stream.MapRecord;
30+
import org.springframework.data.redis.connection.stream.ObjectRecord;
31+
import org.springframework.data.redis.connection.stream.PendingMessage;
32+
import org.springframework.data.redis.connection.stream.PendingMessages;
33+
import org.springframework.data.redis.connection.stream.PendingMessagesSummary;
34+
import org.springframework.data.redis.connection.stream.ReadOffset;
35+
import org.springframework.data.redis.connection.stream.Record;
36+
import org.springframework.data.redis.connection.stream.RecordId;
2937
import org.springframework.data.redis.connection.stream.StreamInfo.XInfoConsumer;
3038
import org.springframework.data.redis.connection.stream.StreamInfo.XInfoGroup;
3139
import org.springframework.data.redis.connection.stream.StreamInfo.XInfoStream;
40+
import org.springframework.data.redis.connection.stream.StreamOffset;
41+
import org.springframework.data.redis.connection.stream.StreamReadOptions;
42+
import org.springframework.data.redis.connection.stream.StreamRecords;
3243
import org.springframework.data.redis.hash.HashMapper;
3344
import org.springframework.lang.Nullable;
3445
import org.springframework.util.Assert;

src/main/java/org/springframework/data/redis/core/StreamOperations.java

+13-1
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,22 @@
2323

2424
import org.springframework.data.domain.Range;
2525
import org.springframework.data.redis.connection.RedisZSetCommands.Limit;
26-
import org.springframework.data.redis.connection.stream.*;
26+
import org.springframework.data.redis.connection.stream.ByteRecord;
27+
import org.springframework.data.redis.connection.stream.Consumer;
28+
import org.springframework.data.redis.connection.stream.MapRecord;
29+
import org.springframework.data.redis.connection.stream.ObjectRecord;
30+
import org.springframework.data.redis.connection.stream.PendingMessage;
31+
import org.springframework.data.redis.connection.stream.PendingMessages;
32+
import org.springframework.data.redis.connection.stream.PendingMessagesSummary;
33+
import org.springframework.data.redis.connection.stream.ReadOffset;
34+
import org.springframework.data.redis.connection.stream.Record;
35+
import org.springframework.data.redis.connection.stream.RecordId;
2736
import org.springframework.data.redis.connection.stream.StreamInfo.XInfoConsumers;
2837
import org.springframework.data.redis.connection.stream.StreamInfo.XInfoGroups;
2938
import org.springframework.data.redis.connection.stream.StreamInfo.XInfoStream;
39+
import org.springframework.data.redis.connection.stream.StreamOffset;
40+
import org.springframework.data.redis.connection.stream.StreamReadOptions;
41+
import org.springframework.data.redis.connection.stream.StreamRecords;
3042
import org.springframework.data.redis.hash.HashMapper;
3143
import org.springframework.lang.Nullable;
3244
import org.springframework.util.Assert;

src/main/kotlin/org/springframework/data/redis/core/ReactiveStreamOperationsExtensions.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import kotlinx.coroutines.reactive.asFlow
2020
import kotlinx.coroutines.reactive.asPublisher
2121
import kotlinx.coroutines.reactive.awaitSingle
2222
import org.springframework.data.domain.Range
23-
import org.springframework.data.redis.connection.RedisZSetCommands.*
23+
import org.springframework.data.redis.connection.RedisZSetCommands.Limit
2424
import org.springframework.data.redis.connection.stream.*
2525

2626
/**

0 commit comments

Comments
 (0)