Skip to content

Commit 9649673

Browse files
committed
Mark CompositeCodec(defaultCodec) ctor for deprecation
Fixes: #10197 Update deprecated ctor to use an empty map for delegates instead of null. **Auto-cherry-pick to `6.4.x`**
1 parent bc5210a commit 9649673

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spring-integration-core/src/main/java/org/springframework/integration/codec/CompositeCodec.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ public CompositeCodec(Map<Class<?>, Codec> delegates, Codec defaultCodec) {
4343
this.delegates = new HashMap<Class<?>, Codec>(delegates);
4444
}
4545

46+
@Deprecated(since = "6.4", forRemoval = true)
4647
public CompositeCodec(Codec defaultCodec) {
47-
this(null, defaultCodec);
48+
this.defaultCodec = defaultCodec;
49+
this.delegates = Map.of();
4850
}
4951

5052
@Override

0 commit comments

Comments
 (0)