DATAMONGO-2538 - Polishing.

Reformat code. Convert utility classes to abstract ones.

Original pull request: #861.
This commit is contained in:
Mark Paluch
2020-05-14 11:02:06 +02:00
parent 26fa0c8285
commit ce2f8a7bf5
3 changed files with 2 additions and 5 deletions

View File

@@ -237,7 +237,6 @@ public class UntypedExampleMatcher implements ExampleMatcher {
@Override
public int hashCode() {
return ObjectUtils.nullSafeHashCode(delegate);
}
}

View File

@@ -47,12 +47,11 @@ import org.springframework.util.StringUtils;
* @author Mark Paluch
* @since 2.2
*/
final class AggregationUtils {
abstract class AggregationUtils {
private static final ParameterBindingDocumentCodec CODEC = new ParameterBindingDocumentCodec();
private AggregationUtils() {
throw new UnsupportedOperationException("This is a utility class and cannot be instantiated");
}
/**

View File

@@ -37,13 +37,12 @@ import org.springframework.util.StringUtils;
* @author Christoph Strobl
* @since 2.2
*/
final class CollationUtils {
abstract class CollationUtils {
private static final ParameterBindingDocumentCodec CODEC = new ParameterBindingDocumentCodec();
private static final Pattern PARAMETER_BINDING_PATTERN = Pattern.compile("\\?(\\d+)");
private CollationUtils() {
throw new UnsupportedOperationException("This is a utility class and cannot be instantiated");
}
/**