I am trying to implement Task Queues in GAE. The documentation shows:
Queue queue = QueueFactory.getDefaultQueue();
queue.add(withUrl("/worker").param("key", key));
But I need to add Builder.withUrl... to get it to compile.
Is this an error in the documentation or is there a way to use static methods without declaring the Class?
you can use
import staticto use a static method “without the class as a prefix”.