Ignore:
Timestamp:
2013-08-19T15:10:53+02:00 (11 years ago)
Author:
Don-vip
Message:

fix #8971 - ArrayIndexOutOfBoundsException when combining single node way + javadoc

File:
1 edited

Legend:

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

    r4272 r6156  
    44
    55/**
    6  * A pair.
     6 * A pair of objects.
     7 * @param <A> Type of first item
     8 * @param <B> Type of second item
     9 * @since 429
    710 */
    811public final class Pair<A,B> {
     12   
     13    /**
     14     * The first item
     15     */
    916    public A a;
     17   
     18    /**
     19     * The second item
     20     */
    1021    public B b;
    1122
     23    /**
     24     * Constructs a new {@code Pair}.
     25     * @param a The first item
     26     * @param b The second item
     27     */
    1228    public Pair(A a, B b) {
    1329        this.a = a;
     
    4864    }
    4965
    50     /* convenience constructor method */
     66    /**
     67     * Convenient constructor method
     68     * @param u The first item
     69     * @param v The second item
     70     * @return The newly created Pair(u,v)
     71     */
    5172    public static <U,V> Pair<U,V> create(U u, V v) {
    5273        return new Pair<U,V>(u,v);
Note: See TracChangeset for help on using the changeset viewer.