Ignore:
Timestamp:
2015-04-28T00:49:49+02:00 (11 years ago)
Author:
Don-vip
Message:

fix sonar squid:S2039 - Member variable visibility should be specified

Location:
trunk/src/org/openstreetmap/josm/tools
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java

    r8126 r8285  
    4848    private static class BugReporterThread extends Thread {
    4949
    50         final Throwable e;
     50        private final Throwable e;
    5151
    5252        public BugReporterThread(Throwable t) {
  • trunk/src/org/openstreetmap/josm/tools/CopyList.java

    r7005 r8285  
    148148         * Index of element to be returned by subsequent call to next.
    149149         */
    150         int cursor = 0;
     150        private int cursor = 0;
    151151
    152152        /**
    … …  
    155155         * to remove.
    156156         */
    157         int lastRet = -1;
     157        private int lastRet = -1;
    158158
    159159        /**
    … …  
    162162         * has detected concurrent modification.
    163163         */
    164         int expectedModCount = modCount;
     164        private int expectedModCount = modCount;
    165165
    166166        @Override
  • trunk/src/org/openstreetmap/josm/tools/Diff.java

    r7801 r8285  
    934934
    935935        /** Number of elements (lines) in this file. */
    936         final int buffered_lines;
     936        private final int buffered_lines;
    937937
    938938        /** Vector, indexed by line number, containing an equivalence code for
    … …  
    943943        /** Vector, like the previous one except that
    944944           the elements for discarded lines have been squeezed out.  */
    945         final int[]    undiscarded;
     945        private final int[]    undiscarded;
    946946
    947947        /** Vector mapping virtual line numbers (not counting discarded lines)
    948948           to real ones (counting those lines).  Both are origin-0.  */
    949         final int[]    realindexes;
     949        private final int[]    realindexes;
    950950
    951951        /** Total number of nondiscarded lines. */
    952         int         nondiscarded_lines;
     952        private int         nondiscarded_lines;
    953953
    954954        /** Array, indexed by real origin-1 line number,
    955955           containing true for a line that is an insertion or a deletion.
    956956           The results of comparison are stored here.  */
    957         boolean[]       changed_flag;
     957        private boolean[]       changed_flag;
    958958    }
    959959}
  • trunk/src/org/openstreetmap/josm/tools/ImageProvider.java

    r8149 r8285  
    11901190
    11911191    /** 90 degrees in radians units */
    1192     static final double DEGREE_90 = 90.0 * Math.PI / 180.0;
     1192    private static final double DEGREE_90 = 90.0 * Math.PI / 180.0;
    11931193
    11941194    /**
  • trunk/src/org/openstreetmap/josm/tools/MultikeyActionsHandler.java

    r8126 r8285  
    6767    private class MyAction extends AbstractAction {
    6868
    69         final MultikeyShortcutAction action;
    70         final Shortcut shortcut;
     69        private final MultikeyShortcutAction action;
     70        private final Shortcut shortcut;
    7171
    7272        MyAction(MultikeyShortcutAction action) {
  • trunk/src/org/openstreetmap/josm/tools/SubclassFilteredCollection.java

    r7395 r8285  
    2020    private final Collection<? extends S> collection;
    2121    private final Predicate<? super S> predicate;
    22     int size = -1;
     22    private int size = -1;
    2323
    2424    private class FilterIterator implements Iterator<T> {
  • trunk/src/org/openstreetmap/josm/tools/TextTagParser.java

    r8061 r8285  
    4040
    4141    public static class TextAnalyzer {
    42         boolean quotesStarted = false;
    43         boolean esc = false;
    44         StringBuilder s = new StringBuilder(200);
    45         int pos;
    46         String data;
    47         int n;
     42        private boolean quotesStarted = false;
     43        private boolean esc = false;
     44        private StringBuilder s = new StringBuilder(200);
     45        private int pos;
     46        private String data;
     47        private int n;
    4848
    4949        public TextAnalyzer(String text) {
  • trunk/src/org/openstreetmap/josm/tools/XmlObjectParser.java

    r7889 r8285  
    6868
    6969    private class Parser extends DefaultHandler {
    70         Stack<Object> current = new Stack<>();
    71         StringBuilder characters = new StringBuilder(64);
     70        private Stack<Object> current = new Stack<>();
     71        private StringBuilder characters = new StringBuilder(64);
    7272
    7373        private Locator locator;
    … …  
    185185
    186186    private static class Entry {
    187         Class<?> klass;
    188         boolean onStart;
    189         boolean both;
     187        private Class<?> klass;
     188        private boolean onStart;
     189        private boolean both;
    190190        private final Map<String, Field> fields = new HashMap<>();
    191191        private final Map<String, Method> methods = new HashMap<>();
  • trunk/src/org/openstreetmap/josm/tools/template_engine/ContextSwitchTemplate.java

    r7937 r8285  
    4141
    4242    private abstract class ContextProvider extends Match {
    43         Match condition;
     43        protected Match condition;
    4444        abstract List<OsmPrimitive> getPrimitives(OsmPrimitive root);
    4545    }
Note: See TracChangeset for help on using the changeset viewer.