anchor.diff:  		public TestItemStoredProcedure(DataSource dataSource) {
   			// ...
   			declareParameter(new SqlOutParameter("item", OracleTypes.STRUCT, "ITEM_TYPE",
  -				new SqlReturnType() {
  -					public Object getTypeValue(CallableStatement cs, int colIndx, int sqlType, String 	) throws SQLException {
  -						STRUCT struct = (STRUCT) cs.getObject(colIndx);
  -						Object[] attr = struct.getAttributes();
  -						TestItem item = new TestItem();
  -						item.setId(((Number) attr[0]).longValue());
  -						item.setDescription((String) attr[1]);
  -						item.setExpirationDate((java.util.Date) attr[2]);
  -						return item;
  -					}
  +				(CallableStatement cs, int colIndx, int sqlType, String typeName) -> {
  +					STRUCT struct = (STRUCT) cs.getObject(colIndx);
  +					Object[] attr = struct.getAttributes();
  +					TestItem item = new TestItem();
  +					item.setId(((Number) attr[0]).longValue());
  +					item.setDescription((String) attr[1]);
  +					item.setExpirationDate((java.util.Date) attr[2]);
  +					return item;
   				}));
   			// ...
   		}
  
positive.code: ----
  	String lastName = this.jdbcTemplate.queryForObject(
  			"select last_name from t_actor where id = ?",
  			new Object[]{1212L}, String.class);
  ----
  [source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
  .Kotlin
  
negative.code: 
  
  If the last two snippets of code actually existed in the same application, it would make
  sense to remove the duplication present in the two `RowMapper` lambda expressions and
  extract them out into a single field that could then be referenced by DAO methods as needed.
  For example, it may be better to write the preceding code snippet as follows:
  
  [source,java,indent=0,subs="verbatim,quotes",role="primary"]
  .Java
  ----
  
  	private final RowMapper<Actor> actorRowMapper = (resultSet, rowNum) -> {
  		Actor actor = new Actor();
  		actor.setFirstName(resultSet.getString("first_name"));
  		actor.setLastName(resultSet.getString("last_name"));
  		return actor;
  	};
  
  	public List<Actor> findAllActors() {
  		return this.jdbcTemplate.query( "select first_name, last_name from t_actor", actorRowMapper);
  	}
  
  ----
  [source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
  .Kotlin
  