Ignore:
Timestamp:
2015-10-08T00:22:36+02:00 (9 years ago)
Author:
Don-vip
Message:

fix Checkstyle issues

Location:
trunk/src/org/openstreetmap/josm/gui/io
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/ActionFlagsTableCell.java

    r8510 r8836  
    5050     * Constructs a new {@code ActionFlagsTableCell}.
    5151     */
    52     public ActionFlagsTableCell() {
     52    ActionFlagsTableCell() {
    5353        checkBoxes[0] = new JCheckBox(tr("Upload"));
    5454        checkBoxes[1] = new JCheckBox(tr("Save"));
  • trunk/src/org/openstreetmap/josm/gui/io/ChangesetManagementPanel.java

    r8510 r8836  
    301301     */
    302302    class RefreshAction extends AbstractAction {
    303         public RefreshAction() {
     303        RefreshAction() {
    304304            putValue(SHORT_DESCRIPTION, tr("Load the list of your open changesets from the server"));
    305305            putValue(SMALL_ICON, ImageProvider.get("dialogs", "refresh"));
     
    318318     */
    319319    class CloseChangesetAction extends AbstractAction implements ItemListener{
    320         public CloseChangesetAction() {
     320        CloseChangesetAction() {
    321321            putValue(SMALL_ICON, ImageProvider.get("closechangeset"));
    322322            putValue(SHORT_DESCRIPTION, tr("Close the currently selected open changeset"));
  • trunk/src/org/openstreetmap/josm/gui/io/CloseChangesetDialog.java

    r8510 r8836  
    119119
    120120    class CloseAction extends AbstractAction implements ListSelectionListener {
    121         public CloseAction() {
     121        CloseAction() {
    122122            putValue(NAME, tr("Close changesets"));
    123123            putValue(SMALL_ICON, ImageProvider.get("closechangeset"));
     
    145145    class CancelAction extends AbstractAction {
    146146
    147         public CancelAction() {
     147        CancelAction() {
    148148            putValue(NAME, tr("Cancel"));
    149149            putValue(SMALL_ICON, ImageProvider.get("cancel"));
  • trunk/src/org/openstreetmap/josm/gui/io/CredentialDialog.java

    r8510 r8836  
    278278        }
    279279
    280         public OsmApiCredentialsPanel(CredentialDialog owner) {
     280        OsmApiCredentialsPanel(CredentialDialog owner) {
    281281            super(owner);
    282282            build();
     
    299299        }
    300300
    301         public OtherHostCredentialsPanel(CredentialDialog owner, String host) {
     301        OtherHostCredentialsPanel(CredentialDialog owner, String host) {
    302302            super(owner);
    303303            this.host = host;
     
    321321        }
    322322
    323         public HttpProxyCredentialsPanel(CredentialDialog owner) {
     323        HttpProxyCredentialsPanel(CredentialDialog owner) {
    324324            super(owner);
    325325            build();
     
    349349        protected JTextField nextTF;
    350350
    351         public TFKeyListener(CredentialDialog owner, JTextField currentTF, JTextField nextTF) {
     351        TFKeyListener(CredentialDialog owner, JTextField currentTF, JTextField nextTF) {
    352352            this.owner = owner;
    353353            this.currentTF = currentTF;
     
    382382
    383383    class OKAction extends AbstractAction {
    384         public OKAction() {
     384        OKAction() {
    385385            putValue(NAME, tr("Authenticate"));
    386386            putValue(SHORT_DESCRIPTION, tr("Authenticate with the supplied username and password"));
     
    396396
    397397    class CancelAction extends AbstractAction {
    398         public CancelAction() {
     398        CancelAction() {
    399399            putValue(NAME, tr("Cancel"));
    400400            putValue(SHORT_DESCRIPTION, tr("Cancel authentication"));
  • trunk/src/org/openstreetmap/josm/gui/io/DownloadFileTask.java

    r8510 r8836  
    6262         *         permitted, and indicates that the cause is nonexistent or unknown.)
    6363         */
    64         public DownloadException(String message, Throwable cause) {
     64        DownloadException(String message, Throwable cause) {
    6565            super(message, cause);
    6666        }
  • trunk/src/org/openstreetmap/josm/gui/io/LayerNameAndFilePathTableCell.java

    r8510 r8836  
    4646
    4747    /** constructor that sets the default on each element **/
    48     public LayerNameAndFilePathTableCell() {
     48    LayerNameAndFilePathTableCell() {
    4949        setLayout(new GridBagLayout());
    5050
     
    217217
    218218    private class LaunchFileChooserAction extends AbstractAction {
    219         public LaunchFileChooserAction() {
     219        LaunchFileChooserAction() {
    220220            putValue(NAME, "...");
    221221            putValue(SHORT_DESCRIPTION, tr("Launch a file chooser to select a file"));
  • trunk/src/org/openstreetmap/josm/gui/io/RecentlyOpenedFilesMenu.java

    r8377 r8836  
    8181    private static class ClearAction extends AbstractAction {
    8282
    83         public ClearAction() {
     83        ClearAction() {
    8484            super(tr("Clear"));
    8585            putValue(SHORT_DESCRIPTION, tr("Clear the list of recently opened files"));
  • trunk/src/org/openstreetmap/josm/gui/io/SaveLayerInfo.java

    r8291 r8836  
    2828     * @throws IllegalArgumentException if layer is null
    2929     */
    30     public SaveLayerInfo(AbstractModifiableLayer layer) {
     30    SaveLayerInfo(AbstractModifiableLayer layer) {
    3131        CheckParameterUtil.ensureParameterNotNull(layer, "layer");
    3232        this.layer = layer;
  • trunk/src/org/openstreetmap/josm/gui/io/SaveLayersDialog.java

    r8736 r8836  
    5555
    5656public class SaveLayersDialog extends JDialog implements TableModelListener {
    57     public static enum UserAction {
     57    public enum UserAction {
    5858        /** save/upload layers was successful, proceed with operation */
    5959        PROCEED,
     
    196196        }
    197197
    198         public LayerListWarningMessagePanel(String msg, List<SaveLayerInfo> infos) {
     198        LayerListWarningMessagePanel(String msg, List<SaveLayerInfo> infos) {
    199199            build();
    200200            lblMessage.setText(msg);
     
    301301
    302302    class CancelAction extends AbstractAction {
    303         public CancelAction() {
     303        CancelAction() {
    304304            putValue(NAME, tr("Cancel"));
    305305            putValue(SHORT_DESCRIPTION, tr("Close this dialog and resume editing in JOSM"));
     
    333333
    334334    class DiscardAndProceedAction extends AbstractAction  implements PropertyChangeListener {
    335         public DiscardAndProceedAction() {
     335        DiscardAndProceedAction() {
    336336            initForDiscardAndExit();
    337337        }
     
    375375        private final transient Image upldDis = new BufferedImage(is, is, BufferedImage.TYPE_4BYTE_ABGR);
    376376
    377         public SaveAndProceedAction() {
     377        SaveAndProceedAction() {
    378378            // get disabled versions of icons
    379379            new JLabel(ImageProvider.get("save")).getDisabledIcon().paintIcon(new JPanel(), saveDis.getGraphics(), 0, 0);
  • trunk/src/org/openstreetmap/josm/gui/io/SaveLayersTable.java

    r8510 r8836  
    1111
    1212class SaveLayersTable extends JTable implements PropertyChangeListener {
    13     public SaveLayersTable(SaveLayersModel model) {
     13    SaveLayersTable(SaveLayersModel model) {
    1414        super(model, new SaveLayersTableColumnModel());
    1515        putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);
  • trunk/src/org/openstreetmap/josm/gui/io/SaveLayersTableColumnModel.java

    r8510 r8836  
    2828         * Constructs a new {@code RecommendedActionsTableCell}.
    2929         */
    30         public RecommendedActionsTableCell() {
     30        RecommendedActionsTableCell() {
    3131            pnlEmpty.setPreferredSize(new Dimension(1, 19));
    3232            needsUpload.setPreferredSize(new Dimension(needsUpload.getPreferredSize().width, 19));
     
    7272     * Constructs a new {@code SaveLayersTableColumnModel}.
    7373     */
    74     public SaveLayersTableColumnModel() {
     74    SaveLayersTableColumnModel() {
    7575        build();
    7676    }
  • trunk/src/org/openstreetmap/josm/gui/io/UploadAndSaveProgressRenderer.java

    r8510 r8836  
    2424     * Constructs a new {@code UploadAndSaveProgressRenderer}.
    2525     */
    26     public UploadAndSaveProgressRenderer() {
     26    UploadAndSaveProgressRenderer() {
    2727        build();
    2828        // initially not visible
  • trunk/src/org/openstreetmap/josm/gui/io/UploadDialog.java

    r8510 r8836  
    381381     */
    382382    class UploadAction extends AbstractAction {
    383         public UploadAction() {
     383        UploadAction() {
    384384            putValue(NAME, tr("Upload Changes"));
    385385            putValue(SMALL_ICON, ImageProvider.get("upload"));
     
    504504     */
    505505    class CancelAction extends AbstractAction {
    506         public CancelAction() {
     506        CancelAction() {
    507507            putValue(NAME, tr("Cancel"));
    508508            putValue(SMALL_ICON, ImageProvider.get("cancel"));
  • trunk/src/org/openstreetmap/josm/gui/io/UploadSelectionDialog.java

    r8510 r8836  
    184184        }
    185185
    186         public OsmPrimitiveList() {
     186        OsmPrimitiveList() {
    187187            this(new OsmPrimitiveListModel());
    188188        }
    189189
    190         public OsmPrimitiveList(OsmPrimitiveListModel model) {
     190        OsmPrimitiveList(OsmPrimitiveListModel model) {
    191191            super(model);
    192192            init();
     
    257257
    258258    class CancelAction extends AbstractAction {
    259         public CancelAction() {
     259        CancelAction() {
    260260            putValue(Action.SHORT_DESCRIPTION, tr("Cancel uploading"));
    261261            putValue(Action.NAME, tr("Cancel"));
     
    275275
    276276    class ContinueAction extends AbstractAction implements ListSelectionListener {
    277         public ContinueAction() {
     277        ContinueAction() {
    278278            putValue(Action.SHORT_DESCRIPTION, tr("Continue uploading"));
    279279            putValue(Action.NAME, tr("Continue"));
  • trunk/src/org/openstreetmap/josm/gui/io/UploadedObjectsSummaryPanel.java

    r8510 r8836  
    147147         * Constructs a new {@code PrimitiveList}.
    148148         */
    149         public PrimitiveList() {
     149        PrimitiveList() {
    150150            super(new PrimitiveListModel());
    151151        }
     
    165165         * Constructs a new {@code PrimitiveListModel}.
    166166         */
    167         public PrimitiveListModel() {
     167        PrimitiveListModel() {
    168168            primitives = new ArrayList<>();
    169169        }
    170170
    171         public PrimitiveListModel(List<OsmPrimitive> primitives) {
     171        PrimitiveListModel(List<OsmPrimitive> primitives) {
    172172            setPrimitives(primitives);
    173173        }
Note: See TracChangeset for help on using the changeset viewer.