Skip to content

Commit

Permalink
Get rid of ServiceLoaderUtil
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-v committed Sep 22, 2024
1 parent e7cf4b2 commit 252f17b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public interface MetadataCodec {
MetadataCodec INSTANCE =
StreamSupport.stream(ServiceLoader.load(MetadataCodec.class).spliterator(), false)
.findFirst()
.orElse(null);
.orElseGet(JdkMetadataCodec::new);

/**
* Deserializes metadata from buffer.
Expand Down

0 comments on commit 252f17b

Please sign in to comment.