Ignore:
Timestamp:
2018-04-24T00:03:28+02:00 (18 months ago)
Author:
Don-vip
Message:

fix recent SonarQube issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/WinRegistry.java

    r13651 r13672  
    183183            throws IllegalAccessException, InvocationTargetException {
    184184        if (regOpenKey == null || regQueryInfoKey == null || regEnumValue == null || regCloseKey == null) {
    185             return null;
     185            return Collections.emptyMap();
    186186        }
    187187        HashMap<String, String> results = new HashMap<>();
     
    189189        Object handles = regOpenKey.invoke(root, hkey(hkey), toCstr(key), Integer.valueOf(KEY_READ));
    190190        if (getNumber(handles, 1).longValue() != REG_SUCCESS) {
    191             return null;
     191            return Collections.emptyMap();
    192192        }
    193193        // Need to capture both int[] (Java 8-10) and long[] (Java 11+)
     
    208208            throws IllegalAccessException, InvocationTargetException {
    209209        if (regOpenKey == null || regQueryInfoKey == null || regEnumKeyEx == null || regCloseKey == null) {
    210             return null;
     210            return Collections.emptyList();
    211211        }
    212212        List<String> results = new ArrayList<>();
Note: See TracChangeset for help on using the changeset viewer.