Ignore:
Timestamp:
2015-06-20T14:36:00+02:00 (9 years ago)
Author:
Don-vip
Message:

fix many checkstyle violations

Location:
trunk/src/org/openstreetmap/josm/data/imagery
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/Shape.java

    r8415 r8509  
    2727        String[] components = asString.split(separator);
    2828        if (components.length % 2 != 0)
    29             throw new IllegalArgumentException(MessageFormat.format("Even number of doubles expected in string, got {0}: {1}", components.length, asString));
     29            throw new IllegalArgumentException(MessageFormat.format("Even number of doubles expected in string, got {0}: {1}",
     30                    components.length, asString));
    3031        for (int i=0; i<components.length; i+=2) {
    3132            addPoint(components[i], components[i+1]);
  • trunk/src/org/openstreetmap/josm/data/imagery/TMSCachedTileLoader.java

    r8459 r8509  
    8080     * @throws IOException      when cache initialization fails
    8181     */
    82     public TMSCachedTileLoader(TileLoaderListener listener, String name, int connectTimeout, int readTimeout, Map<String, String> headers, String cacheDir) throws IOException {
     82    public TMSCachedTileLoader(TileLoaderListener listener, String name, int connectTimeout, int readTimeout,
     83            Map<String, String> headers, String cacheDir) throws IOException {
    8384        this.cache = JCSCacheManager.getCache(name,
    8485                200, // use fairly small memory cache, as cached objects are quite big, as they contain BufferedImages
  • trunk/src/org/openstreetmap/josm/data/imagery/WmsCache.java

    r8470 r8509  
    9898    private int totalFileSize;
    9999    private boolean totalFileSizeDirty; // Some file was missing - size needs to be recalculated
    100     // No need for hashCode/equals on CacheEntry, object identity is enough. Comparing by values can lead to error - CacheEntry for wrong projection could be found
     100    // No need for hashCode/equals on CacheEntry, object identity is enough.
     101    // Comparing by values can lead to error - CacheEntry for wrong projection could be found
    101102    private Map<CacheEntry, SoftReference<BufferedImage>> memoryCache = new HashMap<>();
    102103    private Set<ProjectionBounds> areaToCache;
     
    458459    }
    459460
    460     private String generateFileName(ProjectionEntries projectionEntries, double pixelPerDegree, Projection projection, double east, double north, String mimeType) {
     461    private String generateFileName(ProjectionEntries projectionEntries, double pixelPerDegree, Projection projection,
     462            double east, double north, String mimeType) {
    461463        LatLon ll1 = projection.eastNorth2latlon(new EastNorth(east, north));
    462464        LatLon ll2 = projection.eastNorth2latlon(new EastNorth(east + 100 / pixelPerDegree, north));
     
    490492        FILENAME_LOOP:
    491493            while (true) {
    492                 String result = String.format("%s_%." + precisionLat + "f_%." + precisionLon +"f%s.%s", zoom, ll1.lat(), ll1.lon(), counter==0?"":"_" + counter, extension);
     494                String result = String.format("%s_%." + precisionLat + "f_%." + precisionLon +"f%s.%s",
     495                        zoom, ll1.lat(), ll1.lon(), counter==0?"":"_" + counter, extension);
    493496                for (CacheEntry entry: projectionEntries.entries) {
    494497                    if (entry.filename.equals(result)) {
     
    511514     * @throws IOException if any I/O error occurs
    512515     */
    513     public synchronized void saveToCache(BufferedImage img, InputStream imageData, Projection projection, double pixelPerDegree, double east, double north)
    514             throws IOException {
     516    public synchronized void saveToCache(BufferedImage img, InputStream imageData, Projection projection, double pixelPerDegree,
     517            double east, double north) throws IOException {
    515518        ProjectionEntries projectionEntries = getProjectionEntries(projection);
    516519        CacheEntry entry = findEntry(projectionEntries, pixelPerDegree, east, north);
Note: See TracChangeset for help on using the changeset viewer.