Changeset 8840 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2015-10-09T02:12:45+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data
- Files:
-
- 29 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/CustomConfigurator.java
r8510 r8840 321 321 } 322 322 323 private static boolean busy = false;323 private static boolean busy; 324 324 325 325 public static void pluginOperation(String install, String uninstall, String delete) { -
trunk/src/org/openstreetmap/josm/data/Preferences.java
r8836 r8840 101 101 * @see #getPreferencesDirectory() 102 102 */ 103 private File preferencesDir = null;103 private File preferencesDir; 104 104 105 105 /** 106 106 * Internal storage for the cache directory. 107 107 */ 108 private File cacheDir = null;108 private File cacheDir; 109 109 110 110 /** 111 111 * Internal storage for the user data directory. 112 112 */ 113 private File userdataDir = null;113 private File userdataDir; 114 114 115 115 /** -
trunk/src/org/openstreetmap/josm/data/cache/BufferedImageCacheEntry.java
r8624 r8840 17 17 private static final long serialVersionUID = 1L; //version 18 18 // transient to avoid serialization, volatile to avoid synchronization of whole getImage() method 19 private transient volatile BufferedImage img = null;20 private transient volatile boolean writtenToDisk = false;19 private transient volatile BufferedImage img; 20 private transient volatile boolean writtenToDisk; 21 21 // we need to have separate control variable, to know, if we already tried to load the image, as img might be null 22 22 // after we loaded image, as for example, when image file is malformed (eg. HTML file) 23 private transient volatile boolean imageLoaded = false;23 private transient volatile boolean imageLoaded; 24 24 25 25 /** -
trunk/src/org/openstreetmap/josm/data/cache/JCSCacheManager.java
r8659 r8840 38 38 private static final Logger LOG = FeatureAdapter.getLogger(JCSCacheManager.class.getCanonicalName()); 39 39 40 private static volatile CompositeCacheManager cacheManager = null;40 private static volatile CompositeCacheManager cacheManager; 41 41 private static long maxObjectTTL = -1; 42 42 private static final String PREFERENCE_PREFIX = "jcs.cache"; 43 43 private static final AuxiliaryCacheFactory diskCacheFactory = new IndexedDiskCacheFactory(); 44 private static FileLock cacheDirLock = null;44 private static FileLock cacheDirLock; 45 45 46 46 /** -
trunk/src/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJob.java
r8800 r8840 89 89 private ICacheAccess<K, V> cache; 90 90 private ICacheElement<K, V> cacheElement; 91 protected V cacheData = null;92 protected CacheEntryAttributes attributes = null;91 protected V cacheData; 92 protected CacheEntryAttributes attributes; 93 93 94 94 // HTTP connection parameters … … 98 98 private ThreadPoolExecutor downloadJobExecutor; 99 99 private Runnable finishTask; 100 private boolean force = false;100 private boolean force; 101 101 102 102 /** -
trunk/src/org/openstreetmap/josm/data/imagery/ImageryInfo.java
r8674 r8840 164 164 private String langName; 165 165 /** whether this is a entry activated by default or not */ 166 private boolean defaultEntry = false;166 private boolean defaultEntry; 167 167 /** The data part of HTTP cookies header in case the service requires cookies to work */ 168 private String cookies = null;168 private String cookies; 169 169 /** Whether this service requires a explicit EULA acceptance before it can be activated */ 170 private String eulaAcceptanceRequired = null;170 private String eulaAcceptanceRequired; 171 171 /** type of the imagery servics - WMS, TMS, ... */ 172 172 private ImageryType imageryType = ImageryType.WMS; 173 private double pixelPerDegree = 0.0;173 private double pixelPerDegree; 174 174 /** maximum zoom level for TMS imagery */ 175 private int defaultMaxZoom = 0;175 private int defaultMaxZoom; 176 176 /** minimum zoom level for TMS imagery */ 177 private int defaultMinZoom = 0;177 private int defaultMinZoom; 178 178 /** display bounds of imagery, displayed in prefs and used for automatic imagery selection */ 179 private ImageryBounds bounds = null;179 private ImageryBounds bounds; 180 180 /** projections supported by WMS servers */ 181 181 private List<String> serverProjections; -
trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java
r8742 r8840 94 94 * know what id it will get. 95 95 */ 96 protected long id = 0;96 protected long id; 97 97 98 98 /** … … 100 100 * Never changed by JOSM. 101 101 */ 102 protected User user = null;102 protected User user; 103 103 104 104 /** … … 106 106 * ensure update consistency 107 107 */ 108 protected int version = 0;108 protected int version; 109 109 110 110 /** -
trunk/src/org/openstreetmap/josm/data/osm/Changeset.java
r8512 r8840 46 46 private boolean incomplete; 47 47 /** the changeset content */ 48 private ChangesetDataSet content = null;48 private ChangesetDataSet content; 49 49 /** the changeset discussion */ 50 private List<ChangesetDiscussionComment> discussion = null;50 private List<ChangesetDiscussionComment> discussion; 51 51 52 52 /** -
trunk/src/org/openstreetmap/josm/data/osm/DataSet.java
r8512 r8840 121 121 private int highlightUpdateCount; 122 122 123 private boolean uploadDiscouraged = false;123 private boolean uploadDiscouraged; 124 124 125 125 private final ReadWriteLock lock = new ReentrantReadWriteLock(); -
trunk/src/org/openstreetmap/josm/data/osm/Filter.java
r8812 r8840 15 15 16 16 public boolean enable = true; 17 public boolean hiding = false;18 public boolean inverted = false;17 public boolean hiding; 18 public boolean inverted; 19 19 20 20 /** … … 48 48 public static class FilterPreferenceEntry { 49 49 @pref @writeExplicitly public String version = "1"; 50 @pref public String text = null;50 @pref public String text; 51 51 @pref @writeExplicitly public String mode = "add"; 52 @pref public boolean case_sensitive = false;53 @pref public boolean regex_search = false;54 @pref public boolean mapCSS_search = false;52 @pref public boolean case_sensitive; 53 @pref public boolean regex_search; 54 @pref public boolean mapCSS_search; 55 55 @pref @writeExplicitly public boolean enable = true; 56 @pref @writeExplicitly public boolean hiding = false;57 @pref @writeExplicitly public boolean inverted = false;56 @pref @writeExplicitly public boolean hiding; 57 @pref @writeExplicitly public boolean inverted; 58 58 } 59 59 -
trunk/src/org/openstreetmap/josm/data/osm/NoteData.java
r8510 r8840 27 27 28 28 private final Storage<Note> noteList; 29 private Note selectedNote = null;29 private Note selectedNote; 30 30 private Comparator<Note> comparator = DEFAULT_COMPARATOR; 31 31 -
trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java
r8811 r8840 291 291 * MAPPAINT 292 292 *--------*/ 293 public StyleCache mappaintStyle = null;293 public StyleCache mappaintStyle; 294 294 public int mappaintCacheIdx; 295 295 … … 653 653 *--------------------------------------------------*/ 654 654 655 private static volatile Collection<String> workinprogress = null;656 private static volatile Collection<String> uninteresting = null;657 private static volatile Collection<String> discardable = null;655 private static volatile Collection<String> workinprogress; 656 private static volatile Collection<String> uninteresting; 657 private static volatile Collection<String> discardable; 658 658 659 659 /** … … 777 777 } 778 778 779 private static volatile Match directionKeys = null;780 private static volatile Match reversedDirectionKeys = null;779 private static volatile Match directionKeys; 780 private static volatile Match reversedDirectionKeys; 781 781 782 782 /** -
trunk/src/org/openstreetmap/josm/data/osm/Storage.java
r8510 r8840 89 89 private int mask; 90 90 private int size; 91 private volatile int modCount = 0;91 private volatile int modCount; 92 92 private double loadFactor = 0.6d; 93 93 private static final int DEFAULT_CAPACITY = 16; … … 459 459 private final class SafeReadonlyIter implements Iterator<T> { 460 460 private final T[] data; 461 private int slot = 0;461 private int slot; 462 462 463 463 SafeReadonlyIter(T[] data) { … … 491 491 private final class Iter implements Iterator<T> { 492 492 private final int mods; 493 private int slot = 0;493 private int slot; 494 494 private int removeSlot = -1; 495 495 -
trunk/src/org/openstreetmap/josm/data/osm/User.java
r8588 r8840 24 24 public final class User { 25 25 26 private static long uidCounter = 0;26 private static long uidCounter; 27 27 28 28 /** … … 59 59 } 60 60 61 private static User lastUser = null;61 private static User lastUser; 62 62 63 63 /** -
trunk/src/org/openstreetmap/josm/data/osm/visitor/BoundingXYVisitor.java
r8510 r8840 23 23 public class BoundingXYVisitor extends AbstractVisitor { 24 24 25 private ProjectionBounds bounds = null;25 private ProjectionBounds bounds; 26 26 27 27 @Override -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapRendererFactory.java
r8540 r8840 109 109 110 110 private final List<Descriptor> descriptors = new ArrayList<>(); 111 private Class<? extends AbstractMapRenderer> activeRenderer = null;111 private Class<? extends AbstractMapRenderer> activeRenderer; 112 112 113 113 private MapRendererFactory() { -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/PaintColors.java
r8674 r8840 35 35 private final Color defaultColor; 36 36 37 private static volatile Color backgroundColorCache = null;37 private static volatile Color backgroundColorCache; 38 38 39 39 private static final MapPaintSylesUpdateListener styleOverrideListener = new MapPaintSylesUpdateListener() { -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r8839 r8840 103 103 private int idx; 104 104 105 private Point prev = null;105 private Point prev; 106 106 /* 'prev0' is a point that has distance 'offset' from 'prev' and the 107 107 * line from 'prev' to 'prev0' is perpendicular to the way segment from -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/WireframeMapRenderer.java
r8512 r8840 74 74 75 75 /** Color cache to draw subsequent segments of same color as one <code>Path</code>. */ 76 protected Color currentColor = null;76 protected Color currentColor; 77 77 /** Path store to draw subsequent segments of same color as one <code>Path</code>. */ 78 78 protected GeneralPath currentPath = new GeneralPath(); -
trunk/src/org/openstreetmap/josm/data/projection/AbstractProjection.java
r8346 r8840 26 26 protected Datum datum; 27 27 protected Proj proj; 28 protected double x0 = 0.0;/* false easting (in meters) */29 protected double y0 = 0.0;/* false northing (in meters) */30 protected double lon0 = 0.0;/* central meridian */31 protected double k0 = 1.0; 28 protected double x0; /* false easting (in meters) */ 29 protected double y0; /* false northing (in meters) */ 30 protected double lon0; /* central meridian */ 31 protected double k0 = 1.0; /* general scale factor */ 32 32 33 33 public final Ellipsoid getEllipsoid() { -
trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShiftFileWrapper.java
r8540 r8840 34 34 // CHECKSTYLE.ON: LineLength 35 35 36 private NTV2GridShiftFile instance = null;36 private NTV2GridShiftFile instance; 37 37 private String gridFileName; 38 38 -
trunk/src/org/openstreetmap/josm/data/validation/OsmValidator.java
r8510 r8840 73 73 public class OsmValidator implements LayerChangeListener { 74 74 75 public static volatile ValidatorLayer errorLayer = null;75 public static volatile ValidatorLayer errorLayer; 76 76 77 77 /** The validate action */ … … 297 297 } 298 298 299 private static boolean testsInitialized = false;299 private static boolean testsInitialized; 300 300 301 301 /** -
trunk/src/org/openstreetmap/josm/data/validation/TestError.java
r8633 r8840 33 33 public class TestError implements Comparable<TestError>, DataSetListener { 34 34 /** is this error on the ignore list */ 35 private boolean ignored = false;35 private boolean ignored; 36 36 /** Severity */ 37 37 private Severity severity; -
trunk/src/org/openstreetmap/josm/data/validation/tests/Coastlines.java
r8378 r8840 38 38 private List<Way> coastlines; 39 39 40 private Area downloadedArea = null;40 private Area downloadedArea; 41 41 42 42 /** -
trunk/src/org/openstreetmap/josm/data/validation/tests/Highways.java
r8540 r8840 58 58 private static final Set<String> ISO_COUNTRIES = new HashSet<>(Arrays.asList(Locale.getISOCountries())); 59 59 60 private boolean leftByPedestrians = false;61 private boolean leftByCyclists = false;62 private boolean leftByCars = false;63 private int pedestrianWays = 0;64 private int cyclistWays = 0;65 private int carsWays = 0;60 private boolean leftByPedestrians; 61 private boolean leftByCyclists; 62 private boolean leftByCars; 63 private int pedestrianWays; 64 private int cyclistWays; 65 private int carsWays; 66 66 67 67 /** -
trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java
r8540 r8840 241 241 protected final Map<String, Boolean> assertions = new HashMap<>(); 242 242 protected final Set<String> setClassExpressions = new HashSet<>(); 243 protected boolean deletion = false;243 protected boolean deletion; 244 244 245 245 TagCheck(GroupedMapCSSRule rule) { -
trunk/src/org/openstreetmap/josm/data/validation/tests/RelationChecker.java
r8836 r8840 95 95 96 96 private static class RoleInfo { 97 private int total = 0;97 private int total; 98 98 } 99 99 -
trunk/src/org/openstreetmap/josm/data/validation/tests/TagChecker.java
r8753 r8840 97 97 public static final String PREF_CHECK_FIXMES_BEFORE_UPLOAD = PREF_CHECK_FIXMES + "BeforeUpload"; 98 98 99 protected boolean checkKeys = false;100 protected boolean checkValues = false;101 protected boolean checkComplex = false;102 protected boolean checkFixmes = false;99 protected boolean checkKeys; 100 protected boolean checkValues; 101 protected boolean checkComplex; 102 protected boolean checkFixmes; 103 103 104 104 protected JCheckBox prefCheckKeys; … … 667 667 public Object value; 668 668 public boolean noMatch; 669 public boolean tagAll = false;670 public boolean valueAll = false;671 public boolean valueBool = false;669 public boolean tagAll; 670 public boolean valueAll; 671 public boolean valueBool; 672 672 673 673 private Pattern getPattern(String str) throws PatternSyntaxException { -
trunk/src/org/openstreetmap/josm/data/validation/util/Entities.java
r8513 r8840 334 334 }; 335 335 336 private static volatile Map<String, String> mapNameToValue = null;336 private static volatile Map<String, String> mapNameToValue; 337 337 338 338 public String unescape(String str) {
Note:
See TracChangeset
for help on using the changeset viewer.