Java 16 migration for Geode examples.

See #606.
This commit is contained in:
Mark Paluch
2021-04-29 11:16:44 +02:00
parent 88aabe89e2
commit 6913f7ec5f
29 changed files with 74 additions and 70 deletions

View File

@@ -33,7 +33,7 @@ public class CustomerTransactionWriter implements TransactionWriter {
@Override
public void beforeCommit(TransactionEvent transactionEvent) throws TransactionWriterException {
AtomicBoolean six_found = new AtomicBoolean(false);
var six_found = new AtomicBoolean(false);
transactionEvent.getEvents().forEach(event -> {
if (event instanceof EntryEvent<?, ?>

View File

@@ -64,7 +64,7 @@ public class TransactionalClientTests extends ForkingClientServerIntegrationTest
log.info("Customer for ID before (transaction commit success) = " + customerService.findById(2L).get());
customerService.updateCustomersSuccess();
assertThat(customerService.numberEntriesStoredOnServer()).isEqualTo(5);
Customer customer = customerService.findById(2L).get();
var customer = customerService.findById(2L).get();
assertThat(customer.getFirstName()).isEqualTo("Humpty");
log.info("Customer for ID after (transaction commit success) = " + customer);
@@ -74,8 +74,8 @@ public class TransactionalClientTests extends ForkingClientServerIntegrationTest
assertThat(customer.getFirstName()).isEqualTo("Humpty");
log.info("Customer for ID after (transaction commit failure) = " + customerService.findById(2L).get());
Customer numpty = new Customer(2L, new EmailAddress("2@2.com"), "Numpty", "Hamilton");
Customer frumpy = new Customer(2L, new EmailAddress("2@2.com"), "Frumpy", "Hamilton");
var numpty = new Customer(2L, new EmailAddress("2@2.com"), "Numpty", "Hamilton");
var frumpy = new Customer(2L, new EmailAddress("2@2.com"), "Frumpy", "Hamilton");
customerService.updateCustomersWithDelay(1000, numpty);
customerService.updateCustomersWithDelay(10, frumpy);
customer = customerService.findById(2L).get();