From 29c6eebc52bad3391b1430153ff8616e88fcfd82 Mon Sep 17 00:00:00 2001
From: Joshua Shinavier <joshsh@uber.com>
Date: Wed, 7 Jun 2017 13:22:09 -0700
Subject: [PATCH] Use lambda in annotation example

---
 README.md | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/README.md b/README.md
index 361b85d0..c60e2cf2 100644
--- a/README.md
+++ b/README.md
@@ -205,13 +205,7 @@ public abstract class Person extends AbstractVertexFrame {
   public abstract Knows addKnows(Person friend);
 
   public List<? extends Person> getFriendsNamedBill() {
-      return this.traverse(new Function<GraphTraversal<? extends Vertex, ? extends Vertex>, GraphTraversal<?, ?>>() {
-        @Nullable
-        @Override
-        public GraphTraversal<?, ?> apply(@Nullable final GraphTraversal<? extends Vertex, ? extends Vertex> input) {
-            return input.out("knows").has("name", "bill");
-        }
-     }).toList(Person.class);
+      return this.traverse(input -> input.out("knows").has("name", "bill")).toList(Person.class);
   }
 }
 
-- 
GitLab