Merge branch 'master' of github.com:SpringSource/spring-data-keyvalue

This commit is contained in:
Costin Leau
2010-11-29 20:25:36 +02:00
2 changed files with 7 additions and 2 deletions

View File

@@ -126,11 +126,11 @@
<groupId>com.springsource.bundlor</groupId>
<artifactId>com.springsource.bundlor.maven</artifactId>
</plugin>
<!-- For running Groovy/Spock tests -->
<plugin>
<groupId>org.spockframework</groupId>
<artifactId>spock-maven</artifactId>
</plugin>
<!-- For running Groovy/Spock tests -->
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<configuration>

View File

@@ -896,7 +896,12 @@ public class RiakTemplate extends RestGatewaySupport implements KeyValueStoreOpe
}
}
}
return (null != obj ? (T) obj.get() : null);
if (null != obj && obj.getClass() == requiredType) {
return (T) obj.get();
} else {
return null;
}
}
}