@Test( expected = RuntimeException.class ) public void testSet_NullKey() { set( null, "data" ); }
public void set( Object key, Object value ) { if ( key == null ) { throw new IllegalArgumentException( "key must not be null" ); } if ( value != null ) { data.put( key, value ); } else { data.remove( key ); } }
DefaultSessionData implements SessionData { public void set( Object key, Object value ) { if ( key == null ) { throw new IllegalArgumentException( "key must not be null" ); } if ( value != null ) { data.put( key, value ); } else { data.remove( key ); } } }
DefaultSessionData implements SessionData { public void set( Object key, Object value ) { if ( key == null ) { throw new IllegalArgumentException( "key must not be null" ); } if ( value != null ) { data.put( key, value ); } else { data.remove( key ); } } DefaultSessionData(); }
DefaultSessionData implements SessionData { public void set( Object key, Object value ) { if ( key == null ) { throw new IllegalArgumentException( "key must not be null" ); } if ( value != null ) { data.put( key, value ); } else { data.remove( key ); } } DefaultSessionData(); void set( Object key, Object value ); boolean set( Object key, Object oldValue, Object newValue ); Object get( Object key ); }
DefaultSessionData implements SessionData { public void set( Object key, Object value ) { if ( key == null ) { throw new IllegalArgumentException( "key must not be null" ); } if ( value != null ) { data.put( key, value ); } else { data.remove( key ); } } DefaultSessionData(); void set( Object key, Object value ); boolean set( Object key, Object oldValue, Object newValue ); Object get( Object key );  }