Changeset 9079 in josm


Ignore:
Timestamp:
2015-12-02T00:19:08+01:00 (9 years ago)
Author:
Don-vip
Message:

update to CheckStyle 6.13

Location:
trunk
Files:
1 added
1 deleted
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r9057 r9079  
    604604    <target name="checkstyle">
    605605        <taskdef resource="com/puppycrawl/tools/checkstyle/ant/checkstyle-ant-task.properties"
    606                 classpath="tools/checkstyle/checkstyle-6.12.1-all.jar"/>
     606                classpath="tools/checkstyle/checkstyle-6.13-all.jar"/>
    607607        <checkstyle config="tools/checkstyle/josm_checks.xml">
    608608            <fileset dir="${basedir}/src/org/openstreetmap/josm" includes="**/*.java"
  • trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java

    r8971 r9079  
    5555import org.openstreetmap.josm.tools.Shortcut;
    5656import org.openstreetmap.josm.tools.Utils;
    57 
    5857
    5958public class SearchAction extends JosmAction implements ParameterizedAction {
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java

    r9077 r9079  
    476476     * @param text The text to write on the area.
    477477     */
    478     protected void drawArea(OsmPrimitive osm, Path2D.Double path, Color color, MapImage fillImage, Float extent, Path2D.Double pfClip, boolean unclosedHighlight,
    479             boolean disabled, TextElement text) {
     478    protected void drawArea(OsmPrimitive osm, Path2D.Double path, Color color, MapImage fillImage, Float extent, Path2D.Double pfClip,
     479            boolean unclosedHighlight, boolean disabled, TextElement text) {
    480480
    481481        Shape area = path.createTransformedShape(nc.getAffineTransform());
     
    16571657        if (dx1 * dx2 + dy1 * dy2 < 0) {
    16581658            double len = Math.sqrt(dx1 * dx1 + dy1 * dy1);
    1659             double dxm = - dy1 * extent / len;
     1659            double dxm = -dy1 * extent / len;
    16601660            double dym = dx1 * extent / len;
    16611661            if (dx1 * dy2 - dx2 * dy1 < 0) {
  • trunk/src/org/openstreetmap/josm/data/preferences/ParametrizedEnumProperty.java

    r7937 r9079  
    55
    66public abstract class ParametrizedEnumProperty<T extends Enum<T>> {
    7 
    87
    98    private final T defaultValue;
     
    2827        return Enum.valueOf(enumClass, s);
    2928    }
    30 
    31 
    3229}
  • trunk/src/org/openstreetmap/josm/data/validation/Severity.java

    r8378 r9079  
    6666        return color;
    6767    }
    68 
    69 
    7068}
  • trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/query/UrlBasedQueryPanel.java

    r8510 r9079  
    2828import org.openstreetmap.josm.io.OsmApi;
    2929import org.openstreetmap.josm.tools.ImageProvider;
    30 
    3130
    3231public class UrlBasedQueryPanel extends JPanel {
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java

    r9078 r9079  
    2828import org.openstreetmap.josm.Main;
    2929import org.openstreetmap.josm.tools.ExifReader;
    30 
    3130
    3231public class ImageDisplay extends JComponent {
  • trunk/src/org/openstreetmap/josm/io/MissingOAuthAccessTokenException.java

    r8510 r9079  
    22package org.openstreetmap.josm.io;
    33
     4public class MissingOAuthAccessTokenException extends OsmTransferException {
    45
    5 public class MissingOAuthAccessTokenException extends OsmTransferException {
     6    /**
     7     * Constructs a new {@code MissingOAuthAccessTokenException}.
     8     */
    69    public MissingOAuthAccessTokenException() {
    710        super();
    811    }
    912
     13    /**
     14     * Constructs a new {@code OsmTransferException} with the specified detail message and cause.
     15     * @param message The detail message (which is saved for later retrieval by the {@link #getMessage} method)
     16     * @param cause   The cause (which is saved for later retrieval by the {@link #getCause} method).
     17     *                A null value is permitted, and indicates that the cause is nonexistent or unknown.
     18     */
    1019    public MissingOAuthAccessTokenException(String message, Throwable cause) {
    1120        super(message, cause);
    1221    }
    1322
     23    /**
     24     * Constructs a new {@code OsmTransferException} with the specified detail message.
     25     * @param message The detail message (which is saved for later retrieval by the {@link #getMessage} method)
     26     */
    1427    public MissingOAuthAccessTokenException(String message) {
    1528        super(message);
    1629    }
    1730
     31    /**
     32     * Constructs a new {@code OsmTransferException} with the specified cause.
     33     * @param cause   The cause (which is saved for later retrieval by the {@link #getCause} method).
     34     *                A null value is permitted, and indicates that the cause is nonexistent or unknown.
     35     */
    1836    public MissingOAuthAccessTokenException(Throwable cause) {
    1937        super(cause);
  • trunk/src/org/openstreetmap/josm/tools/template_engine/CompoundTemplateEntry.java

    r8376 r9079  
    11// License: GPL. For details, see LICENSE file.
    22package org.openstreetmap.josm.tools.template_engine;
    3 
    43
    54public final class CompoundTemplateEntry implements TemplateEntry {
  • trunk/src/org/openstreetmap/josm/tools/template_engine/Condition.java

    r8390 r9079  
    44import java.util.ArrayList;
    55import java.util.List;
    6 
    76
    87public class Condition implements TemplateEntry {
Note: See TracChangeset for help on using the changeset viewer.