Skip to content

Commit 5842f05

Browse files
committed
Force jelly transcoder to be non-overridable
1 parent 6462ff7 commit 5842f05

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

core-java/src/main/java/eu/neverblink/jelly/core/JellyTranscoderFactory.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
/**
77
* Factory for creating ProtoTranscoder instances.
88
*/
9-
public interface JellyTranscoderFactory {
9+
public final class JellyTranscoderFactory {
10+
11+
private JellyTranscoderFactory() {}
12+
1013
/**
1114
* Fast transcoder suitable for merging multiple input streams into one.
1215
* This variant DOES NOT check the input options of the consumed streams. This should be therefore only used
@@ -15,7 +18,7 @@ public interface JellyTranscoderFactory {
1518
* @param outputOptions options for the output stream. This MUST have the physical stream type set.
1619
* @return ProtoTranscoder
1720
*/
18-
default ProtoTranscoder fastMergingTranscoderUnsafe(RdfStreamOptions outputOptions) {
21+
static ProtoTranscoder fastMergingTranscoderUnsafe(RdfStreamOptions outputOptions) {
1922
return new ProtoTranscoderImpl(null, outputOptions);
2023
}
2124

@@ -27,7 +30,7 @@ default ProtoTranscoder fastMergingTranscoderUnsafe(RdfStreamOptions outputOptio
2730
* @param outputOptions options for the output stream. This MUST have the physical stream type set.
2831
* @return ProtoTranscoder
2932
*/
30-
default ProtoTranscoder fastMergingTranscoder(
33+
static ProtoTranscoder fastMergingTranscoder(
3134
RdfStreamOptions supportedInputOptions,
3235
RdfStreamOptions outputOptions
3336
) {

0 commit comments

Comments
 (0)