Java 16 migration for REST examples.

See #606.
This commit is contained in:
Mark Paluch
2021-04-29 10:52:40 +02:00
parent b9c0e501d7
commit af86e0219f
19 changed files with 102 additions and 118 deletions

View File

@@ -43,7 +43,7 @@ public class ApplicationIntegrationTests {
personRepository.save(new Person("Frodo", "Baggins"));
personRepository.save(new Person("Bilbo", "Baggins"));
for (Person person : personRepository.findAll()) {
for (var person : personRepository.findAll()) {
log.info("Hello " + person.toString());
}
@@ -51,7 +51,7 @@ public class ApplicationIntegrationTests {
treasureRepository.save(new Treasure("Sting", "Made by the Elves"));
treasureRepository.save(new Treasure("Sauron's ring", "One ring to rule them all"));
for (Treasure treasure : treasureRepository.findAll()) {
for (var treasure : treasureRepository.findAll()) {
log.info("Found treasure " + treasure.toString());
}
}