Ignore:
Timestamp:
2015-10-09T02:12:45+02:00 (4 years ago)
Author:
Don-vip
Message:

sonar - squid:S3052 - Fields should not be initialized to default values

Location:
trunk/src/org/openstreetmap/josm/gui/history
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/history/DiffTableModel.java

    r8510 r8840  
    1515class DiffTableModel extends AbstractTableModel {
    1616    private transient List<TwoColumnDiff.Item> rows = new ArrayList<>();
    17     private boolean reversed = false;
     17    private boolean reversed;
    1818
    1919    public void setRows(List<TwoColumnDiff.Item> rows, boolean reversed) {
  • trunk/src/org/openstreetmap/josm/gui/history/HistoryLoadTask.java

    r8510 r8840  
    5050public class HistoryLoadTask extends PleaseWaitRunnable {
    5151
    52     private boolean canceled = false;
    53     private Exception lastException  = null;
     52    private boolean canceled;
     53    private Exception lastException;
    5454    private Set<PrimitiveId> toLoad;
    5555    private HistoryDataSet loadedData;
    56     private OsmServerHistoryReader reader = null;
     56    private OsmServerHistoryReader reader;
    5757
    5858    /**
  • trunk/src/org/openstreetmap/josm/gui/history/NodeListViewer.java

    r8836 r8840  
    8989    protected TableModelListener newReversedChangeListener(final JTable table, final NodeListTableColumnModel columnModel) {
    9090        return new TableModelListener() {
    91             private Boolean reversed = null;
     91            private Boolean reversed;
    9292            private final String nonReversedText = tr("Nodes") + (table.getFont().canDisplay('\u25bc') ? " \u25bc" : " (1-n)");
    9393            private final String reversedText = tr("Nodes") + (table.getFont().canDisplay('\u25b2') ? " \u25b2" : " (n-1)");
  • trunk/src/org/openstreetmap/josm/gui/history/TwoColumnDiff.java

    r8836 r8840  
    6262    private Object[] reference;
    6363    private Object[] current;
    64     boolean referenceReversed = false;
     64    boolean referenceReversed;
    6565
    6666    TwoColumnDiff(Object[] reference, Object[] current) {
Note: See TracChangeset for help on using the changeset viewer.