Changeset 9372 in josm


Ignore:
Timestamp:
2016-01-09T23:32:49+01:00 (4 years ago)
Author:
simon04
Message:

Checkstyle

Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/coor/Coordinate.java

    r9371 r9372  
    33
    44import java.io.Serializable;
    5 import java.util.Objects;
    65
    76import org.openstreetmap.josm.data.osm.BBox;
  • trunk/src/org/openstreetmap/josm/data/osm/BBox.java

    r9371 r9372  
    44import java.awt.geom.Rectangle2D;
    55import java.util.Arrays;
    6 import java.util.Objects;
    76
    87import org.openstreetmap.josm.data.coor.LatLon;
  • trunk/src/org/openstreetmap/josm/data/osm/MultipolygonBuilder.java

    r9351 r9372  
    1212import java.util.List;
    1313import java.util.Set;
    14 import java.util.concurrent.Callable;
    15 import java.util.concurrent.ExecutionException;
    1614import java.util.concurrent.ForkJoinPool;
    1715import java.util.concurrent.ForkJoinTask;
    18 import java.util.concurrent.Future;
    1916import java.util.concurrent.RecursiveTask;
    2017
  • trunk/src/org/openstreetmap/josm/gui/dialogs/MenuItemSearchDialog.java

    r9347 r9372  
    11// License: GPL. For details, see LICENSE file.
    22package org.openstreetmap.josm.gui.dialogs;
     3
     4import static org.openstreetmap.josm.tools.I18n.tr;
     5
     6import java.awt.Component;
     7import java.awt.Dimension;
     8import java.awt.event.ActionEvent;
     9import java.awt.event.ActionListener;
     10import java.awt.event.KeyEvent;
     11
     12import javax.swing.DefaultListCellRenderer;
     13import javax.swing.DefaultListSelectionModel;
     14import javax.swing.JLabel;
     15import javax.swing.JList;
     16import javax.swing.JMenuItem;
     17import javax.swing.ListCellRenderer;
    318
    419import org.openstreetmap.josm.Main;
     
    924import org.openstreetmap.josm.tools.Shortcut;
    1025
    11 import javax.swing.*;
    12 import java.awt.*;
    13 import java.awt.event.ActionEvent;
    14 import java.awt.event.ActionListener;
    15 import java.awt.event.KeyEvent;
    16 
    17 import static org.openstreetmap.josm.tools.I18n.tr;
    18 
    19 public class MenuItemSearchDialog extends ExtendedDialog {
     26public final class MenuItemSearchDialog extends ExtendedDialog {
    2027
    2128    private final Selector selector;
     
    6471        private final MainMenu menu;
    6572
    66         public Selector(MainMenu menu) {
     73        Selector(MainMenu menu) {
    6774            super();
    6875            this.menu = menu;
     
    95102
    96103        @Override
    97         public Component getListCellRendererComponent(JList<? extends JMenuItem> list, JMenuItem value, int index, boolean isSelected, boolean cellHasFocus) {
     104        public Component getListCellRendererComponent(JList<? extends JMenuItem> list, JMenuItem value, int index,
     105                                                      boolean isSelected, boolean cellHasFocus) {
    98106            final JLabel label = (JLabel) def.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
    99107            label.setText(value.getText());
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTransferHandler.java

    r9369 r9372  
    100100    }
    101101
    102     protected <T> void importData(MemberTable destination, int insertRow, Collection<T> memberData, Function<T, RelationMember> toMemberFunction) {
     102    protected <T> void importData(MemberTable destination, int insertRow,
     103                                  Collection<T> memberData, Function<T, RelationMember> toMemberFunction) {
    103104        final Collection<RelationMember> membersToAdd = new ArrayList<>(memberData.size());
    104105        for (T i : memberData) {
  • trunk/src/org/openstreetmap/josm/gui/widgets/ImageLabel.java

    r9346 r9372  
    66import java.awt.GridBagLayout;
    77
    8 import javax.swing.Icon;
    98import javax.swing.JLabel;
    109import javax.swing.JPanel;
  • trunk/src/org/openstreetmap/josm/gui/widgets/SearchTextResultListPanel.java

    r9347 r9372  
    22package org.openstreetmap.josm.gui.widgets;
    33
    4 import javax.swing.*;
    5 import javax.swing.event.DocumentEvent;
    6 import javax.swing.event.DocumentListener;
    7 import javax.swing.event.ListSelectionListener;
    8 import java.awt.*;
     4import java.awt.BorderLayout;
    95import java.awt.event.ActionListener;
    106import java.awt.event.KeyAdapter;
     
    128import java.awt.event.MouseAdapter;
    139import java.awt.event.MouseEvent;
    14 import java.util.*;
     10import java.util.ArrayList;
    1511import java.util.List;
     12
     13import javax.swing.AbstractListModel;
     14import javax.swing.JList;
     15import javax.swing.JPanel;
     16import javax.swing.JScrollPane;
     17import javax.swing.event.DocumentEvent;
     18import javax.swing.event.DocumentListener;
     19import javax.swing.event.ListSelectionListener;
    1620
    1721public abstract class SearchTextResultListPanel<T> extends JPanel {
  • trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionTest.java

    r9370 r9372  
    8787
    8888    private LatLon random(Bounds b) {
    89         for (int i=0; i<20; i++) {
     89        for (int i = 0; i < 20; i++) {
    9090            double lat = rand.nextDouble() * (b.getMax().lat() - b.getMin().lat()) + b.getMin().lat();
    9191            double lon = rand.nextDouble() * (b.getMax().lon() - b.getMin().lon()) + b.getMin().lon();
     
    134134        }
    135135        Bounds b = p.getWorldBoundsLatLon();
    136         for (int i=0; i<NUM_IT; i++) {
     136        for (int i = 0; i < NUM_IT; i++) {
    137137            LatLon ll1 = random(b);
    138138            EastNorth en = p.latlon2eastNorth(ll1);
Note: See TracChangeset for help on using the changeset viewer.