Ignore:
Timestamp:
2016-07-23T03:04:37+02:00 (8 years ago)
Author:
Don-vip
Message:

see #11390 - sonar - squid:S1609 - Java 8: @FunctionalInterface annotation should be used to flag Single Abstract Method interfaces

Location:
trunk/src/org/openstreetmap/josm/tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/Destroyable.java

    r8512 r10600  
    88 *
    99 * @author immanuel.scholz
     10 * @since   208 (creation)
     11 * @since 10600 (functional interface)
    1012 */
     13@FunctionalInterface
    1114public interface Destroyable {
    1215
  • trunk/src/org/openstreetmap/josm/tools/Diff.java

    r10378 r10600  
    306306    /**
    307307     * Script builder.
    308      */
     308     * @since 10600 (functional interface)
     309     */
     310    @FunctionalInterface
    309311    public interface ScriptBuilder {
    310312        /**
     
    315317         * @param len1 number of lines in 2nd file
    316318         * @return a linked list of changes - or null
     319         * @since 10600 (renamed)
    317320         */
    318         Change build_script(
     321        Change buildScript(
    319322                boolean[] changed0, int len0,
    320323                boolean[] changed1, int len1
     
    322325    }
    323326
    324     /** Scan the tables of which lines are inserted and deleted,
    325      producing an edit script in reverse order.  */
    326 
     327    /**
     328     * Scan the tables of which lines are inserted and deleted, producing an edit script in reverse order.
     329     */
    327330    static class ReverseScript implements ScriptBuilder {
    328331        @Override
    329         public Change build_script(
     332        public Change buildScript(
    330333                final boolean[] changed0, int len0,
    331334                final boolean[] changed1, int len1) {
     
    360363            producing an edit script in forward order.  */
    361364        @Override
    362         public Change build_script(
     365        public Change buildScript(
    363366                final boolean[] changed0, int len0,
    364367                final boolean[] changed1, int len1) {
     
    438441
    439442        // Get the results of comparison in the form of a chain of `struct change's -- an edit script.
    440         return bld.build_script(
     443        return bld.buildScript(
    441444                filevec[0].changedFlag,
    442445                filevec[0].bufferedLines,
  • trunk/src/org/openstreetmap/josm/tools/ImageProvider.java

    r10580 r10600  
    311311    /**
    312312     * Callback interface for asynchronous image loading.
    313      */
     313     * @since 10600 (functional interface)
     314     */
     315    @FunctionalInterface
    314316    public interface ImageCallback {
    315317        /**
     
    323325     * Callback interface for asynchronous image loading (with delayed scaling possibility).
    324326     * @since 7693
    325      */
     327     * @since 10600 (functional interface)
     328     */
     329    @FunctionalInterface
    326330    public interface ImageResourceCallback {
    327331        /**
  • trunk/src/org/openstreetmap/josm/tools/Utils.java

    r10582 r10600  
    809809     */
    810810    @Deprecated
     811    @FunctionalInterface
    811812    public interface Function<A, B> {
    812813
Note: See TracChangeset for help on using the changeset viewer.