Ignore:
Timestamp:
2016-05-17T02:02:30+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - squid:S00112 - Generic exceptions should never be thrown

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/cache/JCSCacheManager.java

    r10169 r10235  
    158158
    159159    @SuppressWarnings("unchecked")
    160     private static <K, V> CacheAccess<K, V> getCacheInner(String cacheName, int maxMemoryObjects, int maxDiskObjects, String cachePath) {
     160    private static <K, V> CacheAccess<K, V> getCacheInner(String cacheName, int maxMemoryObjects, int maxDiskObjects, String cachePath)
     161            throws IOException {
    161162        CompositeCache<K, V> cc = cacheManager.getCache(cacheName, getCacheAttributes(maxMemoryObjects));
    162163
     
    169170                    cc.setAuxCaches(new AuxiliaryCache[]{diskCache});
    170171                }
     172            } catch (IOException e) {
     173                throw e;
    171174            } catch (Exception e) {
    172                 throw new RuntimeException(e);
     175                throw new IOException(e);
    173176            }
    174177        }
Note: See TracChangeset for help on using the changeset viewer.