Ignore:
Timestamp:
2015-06-06T04:32:00+02:00 (9 years ago)
Author:
Don-vip
Message:

javadoc fixes. Removed one duplicated method in exception handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/PasteTagsAction.java

    r8443 r8470  
    7878         * Replies all primitives of type <code>type</code> in the current selection.
    7979         *
    80          * @param <T>
    8180         * @param type  the type
    8281         * @return all primitives of type <code>type</code> in the current selection.
    8382         */
    84         protected <T extends PrimitiveData> Collection<? extends PrimitiveData> getSourcePrimitivesByType(OsmPrimitiveType type) {
     83        protected Collection<? extends PrimitiveData> getSourcePrimitivesByType(OsmPrimitiveType type) {
    8584            return PrimitiveData.getFilteredList(source, type);
    8685        }
     
    9089         * selection
    9190         *
    92          * @param <T>
    9391         * @param type  the type
    9492         * @return the collection of tags for all primitives of type <code>type</code> in the current
    9593         * selection
    9694         */
    97         protected <T extends OsmPrimitive> TagCollection getSourceTagsByType(OsmPrimitiveType type) {
     95        protected TagCollection getSourceTagsByType(OsmPrimitiveType type) {
    9896            return TagCollection.unionOfAllPrimitives(getSourcePrimitivesByType(type));
    9997        }
     
    103101         * type <code>type</code>
    104102         *
    105          * @param <T>
    106103         * @param type the type
    107104         * @return true if there is at least one tag in the current selection for primitives of
    108105         * type <code>type</code>
    109106         */
    110         protected <T extends OsmPrimitive> boolean hasSourceTagsByType(OsmPrimitiveType type) {
     107        protected boolean hasSourceTagsByType(OsmPrimitiveType type) {
    111108            return !getSourceTagsByType(type).isEmpty();
    112109        }
     
    177174         * is in the target collection
    178175         *
    179          * @param <T>
    180176         * @param type  the type to look for
    181177         * @return true if there is at least one primitive of type <code>type</code> in the collection
    182178         * <code>selection</code>
    183179         */
    184         protected <T extends OsmPrimitive> boolean hasTargetPrimitives(Class<T> type) {
     180        protected boolean hasTargetPrimitives(Class<? extends OsmPrimitive> type) {
    185181            return !OsmPrimitive.getFilteredList(target, type).isEmpty();
    186182        }
     
    301297    /**
    302298     * Create and execute SequenceCommand with descriptive title
    303      * @param commands
     299     * @param commands the commands to perform in a sequential command
    304300     */
    305301    private static void commitCommands(Collection<OsmPrimitive> selection, List<Command> commands) {
Note: See TracChangeset for help on using the changeset viewer.