Use diamond notation
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / TransactionReadyReplyMapper.java
index f5eb0e4be68fc023bc995f5f49c286a1537438d6..174fa8688f9ab1b10272bee0b837deebb4c82d3a 100644 (file)
@@ -28,7 +28,7 @@ import scala.concurrent.Future;
  * TODO: once we remove compatibility, make this class package-private and final.
  */
 public class TransactionReadyReplyMapper extends Mapper<Object, ActorSelection> {
-    protected static final Mapper<Throwable, Throwable> SAME_FAILURE_TRANSFORMER = new Mapper<Throwable, Throwable>() {
+    protected static final Mapper<Throwable, Throwable> SAME_FAILURE_TRANSFORMER = new Mapper<>() {
         @Override
         public Throwable apply(final Throwable failure) {
             return failure;