SGF-595 - Polish.
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
package org.springframework.data.gemfire.mapping;
|
||||
|
||||
import static org.springframework.data.gemfire.util.CollectionUtils.*;
|
||||
import static org.springframework.data.gemfire.util.CollectionUtils.asSet;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
@@ -32,12 +32,13 @@ import org.springframework.data.mapping.model.SimpleTypeHolder;
|
||||
* {@link PersistentProperty} implementation to for Gemfire related metadata.
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
* @author John Blum
|
||||
* @see org.springframework.data.mapping.model.AnnotationBasedPersistentProperty
|
||||
*/
|
||||
public class GemfirePersistentProperty extends AnnotationBasedPersistentProperty<GemfirePersistentProperty> {
|
||||
|
||||
protected static final Set<String> SUPPORTED_IDENTIFIER_NAMES = asSet("id");
|
||||
|
||||
|
||||
/**
|
||||
* Constructs an instance of {@link GemfirePersistentProperty} initialized with entity persistent property
|
||||
* information (meta-data).
|
||||
@@ -53,6 +54,7 @@ public class GemfirePersistentProperty extends AnnotationBasedPersistentProperty
|
||||
*/
|
||||
public GemfirePersistentProperty(Property property, PersistentEntity<?, GemfirePersistentProperty> owner,
|
||||
SimpleTypeHolder simpleTypeHolder) {
|
||||
|
||||
super(property, owner, simpleTypeHolder);
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ public class GemfireSimpleTypeHolder extends SimpleTypeHolder {
|
||||
|
||||
private static final boolean REGISTER_DEFAULTS = true;
|
||||
|
||||
protected static final Set<Class<?>> CUSTOM_SIMPLE_TYPES = new HashSet<Class<?>>(2);
|
||||
protected static final Set<Class<?>> CUSTOM_SIMPLE_TYPES = new HashSet<>(2);
|
||||
|
||||
static {
|
||||
CUSTOM_SIMPLE_TYPES.add(BigDecimal.class);
|
||||
@@ -63,5 +63,4 @@ public class GemfireSimpleTypeHolder extends SimpleTypeHolder {
|
||||
public GemfireSimpleTypeHolder(SimpleTypeHolder source) {
|
||||
super(CUSTOM_SIMPLE_TYPES, source);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -26,8 +26,7 @@ import org.junit.Test;
|
||||
import org.springframework.data.mapping.model.SimpleTypeHolder;
|
||||
|
||||
/**
|
||||
* The GemfireSimpleTypeHolderTest class is a test suite of test cases testing the contract and functionality
|
||||
* of the GemfireSimpleTypeHolder class.
|
||||
* Unit tests for {@link GemfireSimpleTypeHolder} class.
|
||||
*
|
||||
* @author John Blum
|
||||
* @see org.junit.Test
|
||||
@@ -50,7 +49,6 @@ public class GemfireSimpleTypeHolderTest {
|
||||
assertThat(holder.isSimpleType(Person.class), is(false));
|
||||
}
|
||||
|
||||
class Person {
|
||||
}
|
||||
class Person { }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user