Toggle navigation
Home
org.locationtech.geogig.repository.GeoGIG to org.locationtech.geogig.repository.Repository
No. of Instances - 24
No. of Commits - 1
No. of Projects - {'geoserver'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: Internal -> Internal
Mapping:
Cascading Type Change (Similar)
RemovalListener<String,GeoGIG>
to
RemovalListener<String,Repository>
GeoGIG
to
Repository
Update Anonymous class
{ @Override public void onRemoval( RemovalNotification<String,GeoGIG> notification){ String repoId=notification.getKey(); GeoGIG geogig=notification.getValue(); if (geogig != null) { URI location=null; try { if (geogig.getContext() != null) { location=geogig.getRepository().getLocation(); } LOGGER.fine(format("Closing cached GeoGig repository instance %s",location != null ? location : repoId)); geogig.close(); LOGGER.finer(format("Closed cached GeoGig repository instance %s",location != null ? location : repoId)); } catch ( RuntimeException e) { LOGGER.log(Level.WARNING,format("Error disposing GeoGig repository instance for id %s",repoId),e); } } } }
to
{ @Override public void onRemoval( RemovalNotification<String,Repository> notification){ String repoId=notification.getKey(); Repository repository=notification.getValue(); if (repository != null) { try { URI location=repository.getLocation(); LOGGER.fine(format("Closing cached GeoGig repository instance %s",location != null ? location : repoId)); repository.close(); LOGGER.finer(format("Closed cached GeoGig repository instance %s",location != null ? location : repoId)); } catch ( RuntimeException e) { LOGGER.log(Level.WARNING,format("Error disposing GeoGig repository instance for id %s",repoId),e); } } } }
Rename Variable
listener
to
disposingListener
listener
to
disposingListener
geogig
to
repository
geogig
to
repository
geogig
to
repository
Convert Class instance creation to method invocation
GeoGIG
to
repository