Changeset 11936 in josm for trunk/src/org


Ignore:
Timestamp:
2017-04-16T21:12:01+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - squid:S1694 - An abstract class should have both abstract and concrete methods

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/proj/LambertConformalConic.java

    r10378 r11936  
    2727public class LambertConformalConic extends AbstractProj {
    2828
     29    /** ellipsoid */
    2930    protected Ellipsoid ellps;
    3031
    31     public abstract static class Parameters {
     32    /**
     33     * Base class of Lambert Conformal Conic parameters.
     34     */
     35    public static class Parameters {
     36        /** latitude of origin */
    3237        public final double latitudeOrigin;
    3338
    34         public Parameters(double latitudeOrigin) {
     39        /**
     40         * Constructs a new {@code Parameters}.
     41         * @param latitudeOrigin latitude of origin
     42         */
     43        protected Parameters(double latitudeOrigin) {
    3544            this.latitudeOrigin = latitudeOrigin;
    3645        }
    3746    }
    3847
     48    /**
     49     * Parameters with a single standard parallel.
     50     */
    3951    public static class Parameters1SP extends Parameters {
     52        /**
     53         * Constructs a new {@code Parameters1SP}.
     54         * @param latitudeOrigin latitude of origin
     55         */
    4056        public Parameters1SP(double latitudeOrigin) {
    4157            super(latitudeOrigin);
     
    4359    }
    4460
     61    /**
     62     * Parameters with two standard parallels.
     63     */
    4564    public static class Parameters2SP extends Parameters {
     65        /** first standard parallel */
    4666        public final double standardParallel1;
     67        /** second standard parallel */
    4768        public final double standardParallel2;
    4869
     70        /**
     71         * Constructs a new {@code Parameters2SP}.
     72         * @param latitudeOrigin latitude of origin
     73         * @param standardParallel1 first standard parallel
     74         * @param standardParallel2 second standard parallel
     75         */
    4976        public Parameters2SP(double latitudeOrigin, double standardParallel1, double standardParallel2) {
    5077            super(latitudeOrigin);
     
    177204    }
    178205
     206    /**
     207     * Returns projection parameters.
     208     * @return projection parameters
     209     */
    179210    public final Parameters getParameters() {
    180211        return params;
  • trunk/src/org/openstreetmap/josm/gui/widgets/MultiSplitLayout.java

    r10749 r11936  
    831831     * Base class for the nodes that model a MultiSplitLayout.
    832832     */
    833     public abstract static class Node {
     833    public static class Node {
    834834        private Split parent;
    835835        private Rectangle bounds = new Rectangle();
    836836        private double weight;
     837
     838        /**
     839         * Constructs a new {@code Node}.
     840         */
     841        protected Node() {
     842            // Default constructor for subclasses only
     843        }
    837844
    838845        /**
Note: See TracChangeset for help on using the changeset viewer.