Skip to content

Commit

Permalink
Add final to all class
Browse files Browse the repository at this point in the history
Signed-off-by: Vijayan Balasubramanian <[email protected]>
  • Loading branch information
VijayanB committed Aug 1, 2024
1 parent fa8bb7d commit d65504b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
// it is clear if similarity method is supported by script_score, then same is applicable for script_fields
// provided script_fields context is supported. Hence, we test for one similarity method to verify that script_fields
// context is supported by this plugin.
public class PainlessScriptFieldsIT extends KNNRestTestCase {
public final class PainlessScriptFieldsIT extends KNNRestTestCase {

private static final String NUMERIC_INDEX_FIELD_NAME = "price";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
import java.util.List;
import java.util.Objects;

public class PainlessScriptHelper {

public final class PainlessScriptHelper {
/**
* Utility to create a Index Mapping with multiple fields
*/
Expand Down Expand Up @@ -45,7 +44,7 @@ public static String createMapping(List<MappingProperty> properties) throws IOEx
return xContentBuilder.toString();
}

static class MappingProperty {
final static class MappingProperty {

private final String name;
private final String type;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import static org.opensearch.knn.common.KNNConstants.METHOD_HNSW;
import static org.opensearch.knn.integ.PainlessScriptHelper.createMapping;

public class PainlessScriptScoreIT extends KNNRestTestCase {
public final class PainlessScriptScoreIT extends KNNRestTestCase {

public static final int AGGREGATION_FIELD_NAME_MIN_LENGTH = 2;
public static final int AGGREGATION_FIELD_NAME_MAX_LENGTH = 5;
Expand Down

0 comments on commit d65504b

Please sign in to comment.