Skip to content

Commit

Permalink
Fix CRSCache constructors signatures
Browse files Browse the repository at this point in the history
Signed-off-by: Grigory Pomadchin <[email protected]>
  • Loading branch information
pomadchin committed Aug 11, 2019
1 parent bcc1317 commit 48cb2d6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/main/java/org/locationtech/proj4j/util/CRSCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,17 @@
public class CRSCache {
private static CRSFactory crsFactory = new CRSFactory();

private ConcurrentHashMap<String, CoordinateReferenceSystem> crsCache = new ConcurrentHashMap<>();
private ConcurrentHashMap<String, String> epsgCache = new ConcurrentHashMap<>();
private ConcurrentHashMap<String, CoordinateReferenceSystem> crsCache;
private ConcurrentHashMap<String, String> epsgCache;

public CRSCache CRSCache() {
public CRSCache() {
crsCache = new ConcurrentHashMap<>();
epsgCache = new ConcurrentHashMap<>();
return this;
}

public CRSCache CRSCache(ConcurrentHashMap<String, CoordinateReferenceSystem> crsCache, ConcurrentHashMap<String, String> epsgCache) {
public CRSCache(ConcurrentHashMap<String, CoordinateReferenceSystem> crsCache, ConcurrentHashMap<String, String> epsgCache) {
this.crsCache = crsCache;
this.epsgCache = epsgCache;
return this;
}

public CoordinateReferenceSystem createFromName(String name)
Expand Down

0 comments on commit 48cb2d6

Please sign in to comment.