Skip to content

Commit

Permalink
TEXT-126: WIP fixing checkstyle order
Browse files Browse the repository at this point in the history
  • Loading branch information
kinow committed Oct 27, 2024
1 parent 6ef7315 commit 62831fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
*/
package org.apache.commons.text.similarity;

import org.apache.commons.lang3.StringUtils;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.function.Function;

import org.apache.commons.lang3.StringUtils;

/**
* A similarity algorithm indicating the percentage of matched characters
* between two character sequences.
Expand Down Expand Up @@ -120,7 +120,7 @@ public Double apply(final CharSequence left, final CharSequence right) {
/**
* Converter class for creating Bigrams for SorensenDice similarity.
*/
private static class SorensenDiceConverter implements Function<CharSequence, Collection<Integer>> {
private static final class SorensenDiceConverter implements Function<CharSequence, Collection<Integer>> {
@Override
public Collection<Integer> apply(CharSequence cs) {
final int length = cs.length();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
*/
package org.apache.commons.text.similarity;

import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;

import java.math.RoundingMode;
import java.text.DecimalFormat;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

/**
* Unit tests for {@link SorensenDiceSimilarity}.
Expand Down

0 comments on commit 62831fc

Please sign in to comment.