# sprint-2 - Fixed warning in example.
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/375376b6 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/375376b6 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/375376b6 Branch: refs/heads/ignite-45 Commit: 375376b68ccb9e8d83746f6eeac49a6388396012 Parents: a792c99 Author: Dmitiry Setrakyan <dsetrak...@gridgain.com> Authored: Fri Feb 27 23:50:04 2015 -0500 Committer: Dmitiry Setrakyan <dsetrak...@gridgain.com> Committed: Fri Feb 27 23:50:04 2015 -0500 ---------------------------------------------------------------------- .../examples/datagrid/store/CacheNodeWithStoreStartup.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/375376b6/examples/src/main/java/org/apache/ignite/examples/datagrid/store/CacheNodeWithStoreStartup.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/datagrid/store/CacheNodeWithStoreStartup.java b/examples/src/main/java/org/apache/ignite/examples/datagrid/store/CacheNodeWithStoreStartup.java index 0c87f84..5245f98 100644 --- a/examples/src/main/java/org/apache/ignite/examples/datagrid/store/CacheNodeWithStoreStartup.java +++ b/examples/src/main/java/org/apache/ignite/examples/datagrid/store/CacheNodeWithStoreStartup.java @@ -64,19 +64,19 @@ public class CacheNodeWithStoreStartup { discoSpi.setIpFinder(ipFinder); - CacheConfiguration cacheCfg = new CacheConfiguration(); + CacheConfiguration<Long, Person> cacheCfg = new CacheConfiguration<>(); // Set atomicity as transaction, since we are showing transactions in example. cacheCfg.setAtomicityMode(TRANSACTIONAL); - CacheStore store; + CacheStore<Long, Person> store; // Uncomment other cache stores to try them. store = new CacheDummyPersonStore(); // store = new CacheJdbcPersonStore(); // store = new CacheHibernatePersonStore(); - cacheCfg.setCacheStoreFactory(new FactoryBuilder.SingletonFactory(store)); + cacheCfg.setCacheStoreFactory(new FactoryBuilder.SingletonFactory<>(store)); cacheCfg.setReadThrough(true); cacheCfg.setWriteThrough(true);