Ignore:
Timestamp:
2016-07-02T21:57:09+02:00 (8 years ago)
Author:
donvip
Message:

checkstyle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/trustosm/src/tools/SpringUtilities.java

    r24389 r32533  
    2828 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    2929 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    30  */ 
     30 */
    3131
    3232package tools;
    3333
    34 import javax.swing.*;
     34import java.awt.Component;
     35import java.awt.Container;
     36
     37import javax.swing.Spring;
    3538import javax.swing.SpringLayout;
    36 import java.awt.*;
    3739
    3840/**
     
    4244 * SpringBox and SpringCompactGrid.
    4345 */
    44 public class SpringUtilities {
     46public final class SpringUtilities {
     47
     48    private SpringUtilities() {
     49        // Hide default constructors for utilities classes
     50    }
     51
    4552    /**
    4653     * A debugging utility that prints to stdout the component's
     
    7380        SpringLayout layout;
    7481        try {
    75             layout = (SpringLayout)parent.getLayout();
     82            layout = (SpringLayout) parent.getLayout();
    7683        } catch (ClassCastException exc) {
    7784            System.err.println("The first argument to makeGrid must use SpringLayout.");
     
    176183        SpringLayout layout;
    177184        try {
    178             layout = (SpringLayout)parent.getLayout();
     185            layout = (SpringLayout) parent.getLayout();
    179186        } catch (ClassCastException exc) {
    180187            System.err.println("The first argument to makeCompactGrid must use SpringLayout.");
Note: See TracChangeset for help on using the changeset viewer.