otaviojava commented on a change in pull request #1029: Updates the API within
the core project.
URL: https://github.com/apache/tinkerpop/pull/1029#discussion_r246323767
##########
File path:
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/decoration/EventStrategy.java
##########
@@ -223,11 +223,7 @@ public void addEvent(final Event evt) {
*/
public static class TransactionalEventQueue implements EventQueue {
- private final ThreadLocal<Deque<Event>> eventQueue = new
ThreadLocal<Deque<Event>>() {
- protected Deque<Event> initialValue() {
- return new ArrayDeque<>();
- }
- };
+ private final ThreadLocal<Deque<Event>> eventQueue =
ThreadLocal.withInitial(() -> new ArrayDeque<>());
Review comment:
Thank you, fixed.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services