Ignore:
Timestamp:
2021-05-01T21:50:00+02:00 (3 years ago)
Author:
simon04
Message:

fix #20793 - Reduce memory consumption for GpxExtensionCollection (patch by Bjoeni, modified)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/gpx/IWithAttributes.java

    r15496 r17846  
    5858
    5959    /**
     60     * Returns whether the {@link GpxExtensionCollection} instance has been created yet, should be overridden.
     61     * The instance will usually be created on first call of {@link #getExtensions()}.
     62     * @return whether the {@link GpxExtensionCollection} instance has been created yet
     63     */
     64    default boolean hasExtensions() {
     65        return getExtensions() != null;
     66    }
     67
     68    /**
    6069     * Returns the extensions
    6170     * @return the extensions
Note: See TracChangeset for help on using the changeset viewer.