Ignore:
Timestamp:
2015-06-20T23:42:21+02:00 (9 years ago)
Author:
Don-vip
Message:

checkstyle: enable relevant whitespace checks and fix them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/oauth/OAuthAuthorizationWizard.java

    r8468 r8510  
    7171     * @return panel with buttons
    7272     */
    73     protected JPanel buildButtonRow(){
     73    protected JPanel buildButtonRow() {
    7474        JPanel pnl = new JPanel(new FlowLayout(FlowLayout.CENTER));
    7575
     
    9393    protected JPanel buildHeaderInfoPanel() {
    9494        JPanel pnl = new JPanel(new GridBagLayout());
    95         pnl.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
     95        pnl.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
    9696        GridBagConstraints gc = new GridBagConstraints();
    9797
     
    109109        // OAuth in a nutshell ...
    110110        gc.gridy  = 1;
    111         gc.insets = new Insets(5,0,0,5);
     111        gc.insets = new Insets(5, 0, 0, 5);
    112112        HtmlPanel pnlMessage = new HtmlPanel();
    113113        pnlMessage.setText("<html><body>"
     
    125125        lbl = new JLabel(tr("Please select an authorization procedure: "));
    126126        lbl.setFont(lbl.getFont().deriveFont(Font.PLAIN));
    127         pnl.add(lbl,gc);
     127        pnl.add(lbl, gc);
    128128
    129129        gc.gridx = 1;
    130130        gc.gridwidth = 1;
    131131        gc.weightx = 1.0;
    132         pnl.add(cbAuthorisationProcedure = new AuthorizationProcedureComboBox(),gc);
     132        pnl.add(cbAuthorisationProcedure = new AuthorizationProcedureComboBox(), gc);
    133133        cbAuthorisationProcedure.addItemListener(new AuthorisationProcedureChangeListener());
    134134        lbl.setLabelFor(cbAuthorisationProcedure);
     
    141141     */
    142142    protected void refreshAuthorisationProcedurePanel() {
    143         AuthorizationProcedure procedure = (AuthorizationProcedure)cbAuthorisationProcedure.getSelectedItem();
     143        AuthorizationProcedure procedure = (AuthorizationProcedure) cbAuthorisationProcedure.getSelectedItem();
    144144        switch(procedure) {
    145145        case FULLY_AUTOMATIC:
     
    189189                    @Override
    190190                    public void componentResized(ComponentEvent e) {}
     191
    191192                    @Override
    192193                    public void componentMoved(ComponentEvent e) {}
     
    239240
    240241    protected AbstractAuthorizationUI getCurrentAuthorisationUI() {
    241         switch((AuthorizationProcedure)cbAuthorisationProcedure.getSelectedItem()) {
     242        switch((AuthorizationProcedure) cbAuthorisationProcedure.getSelectedItem()) {
    242243        case FULLY_AUTOMATIC: return pnlFullyAutomaticAuthorisationUI;
    243244        case MANUALLY: return pnlManualAuthorisationUI;
     
    296297                    WindowGeometry.centerInWindow(
    297298                            Main.parent,
    298                             new Dimension(450,540)
     299                            new Dimension(450, 540)
    299300                    )
    300301            ).applySafe(this);
     
    365366            if (!evt.getPropertyName().equals(AbstractAuthorizationUI.ACCESS_TOKEN_PROP))
    366367                return;
    367             updateEnabledState((OAuthToken)evt.getNewValue());
     368            updateEnabledState((OAuthToken) evt.getNewValue());
    368369        }
    369370    }
Note: See TracChangeset for help on using the changeset viewer.