< prev index next >

src/java.corba/share/classes/com/sun/corba/se/impl/orbutil/DenseIntMapImpl.java

Print this page

        

*** 40,51 **** { if (key < 0) throw new IllegalArgumentException( "Key must be >= 0." ) ; } ! /** If key >= 0, return the value bound to key, or null if none. ! * Throws IllegalArgumentException if key <0. */ public Object get( int key ) { checkKey( key ) ; --- 40,52 ---- { if (key < 0) throw new IllegalArgumentException( "Key must be >= 0." ) ; } ! /** ! * If {@code key >= 0}, return the value bound to key, or null if none. ! * Throws IllegalArgumentException if {@code key < 0}. */ public Object get( int key ) { checkKey( key ) ;
*** 54,65 **** result = list.get( key ) ; return result ; } ! /** If key >= 0, bind value to the key. ! * Throws IllegalArgumentException if key <0. */ public void set( int key, Object value ) { checkKey( key ) ; extend( key ) ; --- 55,67 ---- result = list.get( key ) ; return result ; } ! /** ! * If {@code key >= 0}, bind value to the key. ! * Throws IllegalArgumentException if {@code key < 0}. */ public void set( int key, Object value ) { checkKey( key ) ; extend( key ) ;
< prev index next >