This is an automated email from the ASF dual-hosted git repository. ppalaga pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-mvnd.git
The following commit(s) were added to refs/heads/master by this push: new 685ca13b [MNG-6847] Use diamond operator 685ca13b is described below commit 685ca13bff73654f1f2b272c9976259c565cf8a6 Author: Tim te Beek <timteb...@gmail.com> AuthorDate: Mon Sep 25 21:35:04 2023 +0000 [MNG-6847] Use diamond operator Use this link to re-run the recipe: https://app.moderne.io/recipes/builder/SEvWu02zw?organizationId=QXBhY2hlIE1hdmVu Co-authored-by: Moderne <t...@moderne.io> --- build-plugin/src/main/java/org/mvndaemon/mvnd/plugin/doc/DocMojo.java | 2 +- native/src/main/java/org/mvndaemon/mvnd/nativ/MvndNativeLoader.java | 2 +- native/src/main/java/org/mvndaemon/mvnd/nativ/OSInfo.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build-plugin/src/main/java/org/mvndaemon/mvnd/plugin/doc/DocMojo.java b/build-plugin/src/main/java/org/mvndaemon/mvnd/plugin/doc/DocMojo.java index 891e9d82..0b089817 100644 --- a/build-plugin/src/main/java/org/mvndaemon/mvnd/plugin/doc/DocMojo.java +++ b/build-plugin/src/main/java/org/mvndaemon/mvnd/plugin/doc/DocMojo.java @@ -125,7 +125,7 @@ public class DocMojo extends AbstractMojo { @Override public synchronized Enumeration<Object> keys() { final Iterator<Object> it = new TreeSet<>(keySet()).iterator(); - return new Enumeration<Object>() { + return new Enumeration<>() { public boolean hasMoreElements() { return it.hasNext(); } diff --git a/native/src/main/java/org/mvndaemon/mvnd/nativ/MvndNativeLoader.java b/native/src/main/java/org/mvndaemon/mvnd/nativ/MvndNativeLoader.java index 0be5020d..cdfae9d0 100644 --- a/native/src/main/java/org/mvndaemon/mvnd/nativ/MvndNativeLoader.java +++ b/native/src/main/java/org/mvndaemon/mvnd/nativ/MvndNativeLoader.java @@ -262,7 +262,7 @@ public class MvndNativeLoader { return; } - List<String> triedPaths = new LinkedList<String>(); + List<String> triedPaths = new LinkedList<>(); // Try loading library from library.mvndnative.path library path */ String mvndnativeNativeLibraryPath = System.getProperty("library.mvndnative.path"); diff --git a/native/src/main/java/org/mvndaemon/mvnd/nativ/OSInfo.java b/native/src/main/java/org/mvndaemon/mvnd/nativ/OSInfo.java index 05cad9d2..16f91919 100644 --- a/native/src/main/java/org/mvndaemon/mvnd/nativ/OSInfo.java +++ b/native/src/main/java/org/mvndaemon/mvnd/nativ/OSInfo.java @@ -39,7 +39,7 @@ public class OSInfo { public static final String PPC64 = "ppc64"; public static final String ARM64 = "arm64"; - private static final HashMap<String, String> archMapping = new HashMap<String, String>(); + private static final HashMap<String, String> archMapping = new HashMap<>(); static { // x86 mappings