Functional Programming in Java, Second Edition: p 78, 79: The example code uses "var", but maybe should be explicit

Code on page 78 looks like this for example:

var namesAndEmailAddressesCount =
   people.stream()
      .collect(groupingBy(
         Person::lastName,
         summingInt(person -> person.emailAddresses().size())));
System.out.println(namesAndEmailAddressesCount);

While using var is concise in actual code, I suggest to be explicit for the examples:

Map<String, Integer> namesAndEmailAddressesCount =
   people.stream()
      .collect(groupingBy(
         Person::lastName,
         summingInt(person -> person.emailAddresses().size())));
System.out.println(namesAndEmailAddressesCount);

On the hand, better not make an error in the type declaration of the result otherwise one might be puzzling why the type checkers keeps complaining at the far end of the fluent expression for some time!