Skip to content

Commit

Permalink
fix: add signature and fix small code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloSanchi committed Aug 2, 2024
1 parent fd83560 commit 5f67eff
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
import java.util.List;

/**
* {@link Config} is a class that holds the configuration for the {@link RecursiveCharacterChunker}.
* {@link Config} is a class that holds the configuration for the
* {@link RecursiveCharacterChunker}.
*
* @author Pablo Sanchidrian Herrera
*/
public class Config {
Expand All @@ -27,7 +29,7 @@ public List<String> getSeparators() {
}

public Config(Integer chunkSize, Integer chunkOverlap, List<String> separators) {
assert chunkOverlap < chunkSize;
assert chunkOverlap < chunkSize;

this.chunkSize = chunkSize;
this.chunkOverlap = chunkOverlap;
Expand Down

0 comments on commit 5f67eff

Please sign in to comment.