On Mon, Oct 14, 2019 at 9:49 AM Ales Musil <amusil@redhat.com> wrote:
Hi,
just found out that checkstyle is not completely aware of Java 11 features.
Completely valid syntax e.g. "var attachmentsToRemove = new HashSet<Guid>();"


I think more correct usage is:

Set<Guid> attachmentsToRemove = new HashSet<>();

Does check style complain if you change to above?

is marked with error: "DiamondOperator: Diamond operator should be used"

What can we do about this?

Thanks.
Regards,
Ales

--

Ales Musil

Associate Software Engineer - RHV Network

Red Hat EMEA

amusil@redhat.com    IM: amusil

_______________________________________________
Devel mailing list -- devel@ovirt.org
To unsubscribe send an email to devel-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/GA3QZK7IHFMGLND5PRNCWEF3WCCXSDTH/


--
Martin Perina
Manager, Software Engineering
Red Hat Czech s.r.o.