mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-11-28 02:11:31 +08:00
[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:
committed by
Peter Palaga
parent
15d622e185
commit
685ca13bff
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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");
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user