Skip to content

Commit

Permalink
Add default construct to exported classes to remove compiler warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
nstdio committed Jul 15, 2022
1 parent 93d0d7d commit 132eead
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/io/github/nstdio/http/ext/BodyHandlers.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ public static final class DecompressingBodyHandlerBuilder {
private boolean failOnUnsupportedDirectives = true;
private boolean failOnUnknownDirectives = true;

/**
* Creates the {@code DecompressingBodyHandlerBuilder} instance with {@link #failOnUnsupportedDirectives} and
* {@link #failOnUnknownDirectives} enabled.
*/
public DecompressingBodyHandlerBuilder() {
}

/**
* Sets whether throw exception when compression directive not supported or not.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
public class IdentityCompressionFactory extends CompressionFactoryBase {
private final List<String> supported = List.of("identity");

public IdentityCompressionFactory() {
}

@Override
public List<String> supported() {
return supported;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
public class JdkCompressionFactory implements CompressionFactory {
private final List<String> supportedTypes = List.of("gzip", "x-gzip", "deflate");

public JdkCompressionFactory() {
}

@Override
public List<String> supported() {
return supportedTypes;
Expand Down

0 comments on commit 132eead

Please sign in to comment.