Skip to content

Commit

Permalink
fix: add id to Zstandard
Browse files Browse the repository at this point in the history
* and supress warnings
  • Loading branch information
bogovicj committed Dec 19, 2023
1 parent 4e88912 commit fa8ac31
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ public static ZarrCompressor fromCompression(final Compression compression) {

public static class Zstandard implements ZarrCompressor {

@SuppressWarnings("unused")
private final String id = "zstd";
private final int level;
private final transient int nbWorkers;

Expand Down Expand Up @@ -120,6 +122,7 @@ public Compression getCompression() {

public static class Blosc implements ZarrCompressor {

@SuppressWarnings("unused")
private final String id = "blosc";
private final String cname;
private final int clevel;
Expand Down Expand Up @@ -180,6 +183,7 @@ public BloscCompression getCompression() {

public static class Zlib implements ZarrCompressor {

@SuppressWarnings("unused")
private final String id = "zlib";
private final int level;

Expand Down Expand Up @@ -207,6 +211,7 @@ public GzipCompression getCompression() {

public static class Gzip implements ZarrCompressor {

@SuppressWarnings("unused")
private final String id = "gzip";
private final int level;

Expand Down Expand Up @@ -234,6 +239,7 @@ public GzipCompression getCompression() {

public static class Bz2 implements ZarrCompressor {

@SuppressWarnings("unused")
private final String id = "bz2";
private final int level;

Expand Down

0 comments on commit fa8ac31

Please sign in to comment.