On 10/05/16 16:28, "Davide Giannella" wrote:
>upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/version/Versionabl
>ePropertiesEditor.java:142:
>error: diamond operator is not supported in -source 1.6
>[INFO] [ERROR] Set<String> updated = new HashSet<>();
>[INFO] [ERROR] ^
>[INFO] [ERROR] (use -source 7 or higher to enable diamond operator)

hmm, I think this is a case where I personally would *not* use a Java 7
feature. as mentioned by others when the move to Java 7 was discussed,
it may make it more difficult to merge back changes to older branches.

In this case I would rather use Guava's factory methods Sets.newHashSet().

Regards
 Marcel 

Reply via email to