anchor.diff:  
   
   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` anonymous inner classes
  -and extract them out into a single class (typically a `static` nested class) 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
  -----
  +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", new ActorMapper());
  -	}
  -
  -	private static final class ActorMapper implements RowMapper<Actor> {
  -
  -		public Actor mapRow(ResultSet rs, int rowNum) throws SQLException {
  -			Actor actor = new Actor();
  -			actor.setFirstName(rs.getString("first_name"));
  -			actor.setLastName(rs.getString("last_name"));
  -			return actor;
  -		}
  -	}
  +		return this.jdbcTemplate.query( "select first_name, last_name from t_actor", actorRowMapper);
  +	}
  +
   ----
   [source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
   .Kotlin
  
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: 					"update t_actor set first_name = ?, last_name = ? where id = ?",
  					actors,
  					100,
  					(PreparedStatement ps, Actor argument) -> {
  						ps.setString(1, argument.getFirstName());
  						ps.setString(2, argument.getLastName());
  						ps.setLong(3, argument.getId().longValue());
  					});
  			return updateCounts;
  		}
  