Skip to content

Commit 4064ce7

Browse files
committed
Added private constructor and removed unused switch case.
1 parent e52cced commit 4064ce7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/io/github/majusko/pulsar/PulsarSpringStarterUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99

1010
public class PulsarSpringStarterUtils {
1111

12+
private PulsarSpringStarterUtils() {
13+
}
14+
1215
private static <T> Schema<?> getGenericSchema(Serialization serialization, Class<T> clazz) throws RuntimeException {
1316
switch (serialization) {
1417
case JSON: {
@@ -20,9 +23,6 @@ private static <T> Schema<?> getGenericSchema(Serialization serialization, Class
2023
case STRING: {
2124
return Schema.STRING;
2225
}
23-
case BYTE: {
24-
return Schema.BYTES;
25-
}
2626
default: {
2727
throw new ProducerInitException("Unknown producer schema.");
2828
}

0 commit comments

Comments
 (0)