Permalink
Browse files

fixed spelling

  • Loading branch information...
1 parent 4776625 commit b6fcef75db418185c54f03e41d597b40aedd8e01 @musketyr musketyr committed Aug 30, 2013
View
2 ...n/groovyx/gaelyk/datastore/Coercable.java → ...n/groovyx/gaelyk/datastore/Coercible.java
@@ -10,7 +10,7 @@
*
* @param <T> implememnting type
*/
-public interface Coercable<T> {
+public interface Coercible<T> {
/**
* Coerce self from the given entity.
View
8 core/src/main/groovyx/gaelyk/datastore/PogoEntityCoercion.java
@@ -6,8 +6,8 @@
public class PogoEntityCoercion {
public static <T> Entity convert(T dsEntity){
- if (dsEntity instanceof Coercable<?>){
- return ((Coercable<T>) dsEntity).coerce(dsEntity);
+ if (dsEntity instanceof Coercible<?>){
+ return ((Coercible<T>) dsEntity).coerce(dsEntity);
}
if (dsEntity instanceof DatastoreEntity<?>){
return DatastoreEntityCoercion.convert((DatastoreEntity<?>) dsEntity);
@@ -22,8 +22,8 @@
if (Key.class.equals(cls)){
return (E) en.getKey();
}
- if (Coercable.class.isAssignableFrom(cls)) {
- return ((Coercable<E>)cls.newInstance()).coerce(en);
+ if (Coercible.class.isAssignableFrom(cls)) {
+ return ((Coercible<E>)cls.newInstance()).coerce(en);
}
if (DatastoreEntity.class.isAssignableFrom(cls)){
return (E) DatastoreEntityCoercion.convert(en,(Class<? extends DatastoreEntity>) cls);

0 comments on commit b6fcef7

Please sign in to comment.