[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 <team@moderne.io>
This commit is contained in:
Tim te Beek
2023-09-25 21:35:04 +00:00
committed by Peter Palaga
parent 15d622e185
commit 685ca13bff
3 changed files with 3 additions and 3 deletions

View File

@@ -125,7 +125,7 @@ public class DocMojo extends AbstractMojo {
@Override @Override
public synchronized Enumeration<Object> keys() { public synchronized Enumeration<Object> keys() {
final Iterator<Object> it = new TreeSet<>(keySet()).iterator(); final Iterator<Object> it = new TreeSet<>(keySet()).iterator();
return new Enumeration<Object>() { return new Enumeration<>() {
public boolean hasMoreElements() { public boolean hasMoreElements() {
return it.hasNext(); return it.hasNext();
} }

View File

@@ -262,7 +262,7 @@ public class MvndNativeLoader {
return; return;
} }
List<String> triedPaths = new LinkedList<String>(); List<String> triedPaths = new LinkedList<>();
// Try loading library from library.mvndnative.path library path */ // Try loading library from library.mvndnative.path library path */
String mvndnativeNativeLibraryPath = System.getProperty("library.mvndnative.path"); String mvndnativeNativeLibraryPath = System.getProperty("library.mvndnative.path");

View File

@@ -39,7 +39,7 @@ public class OSInfo {
public static final String PPC64 = "ppc64"; public static final String PPC64 = "ppc64";
public static final String ARM64 = "arm64"; 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 { static {
// x86 mappings // x86 mappings