From 61496509c09126587b63b193a464fa91f00201b0 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Tue, 19 Sep 2006 05:39:35 +0000 Subject: Renamed empty cursor access method to "the". --- src/main/java/com/amazon/carbonado/cursor/EmptyCursor.java | 4 ++-- src/main/java/com/amazon/carbonado/qe/EmptyQuery.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/main/java/com/amazon/carbonado/cursor/EmptyCursor.java b/src/main/java/com/amazon/carbonado/cursor/EmptyCursor.java index db3778b..e0649cd 100644 --- a/src/main/java/com/amazon/carbonado/cursor/EmptyCursor.java +++ b/src/main/java/com/amazon/carbonado/cursor/EmptyCursor.java @@ -34,10 +34,10 @@ public class EmptyCursor implements Cursor { private static final Cursor EMPTY_CURSOR = new EmptyCursor(); /** - * Returns the singleton empty cursor instance. + * Returns the empty cursor instance. */ @SuppressWarnings("unchecked") - public static Cursor getEmptyCursor() { + public static Cursor the() { return EMPTY_CURSOR; } diff --git a/src/main/java/com/amazon/carbonado/qe/EmptyQuery.java b/src/main/java/com/amazon/carbonado/qe/EmptyQuery.java index f07e7ff..d0f133c 100644 --- a/src/main/java/com/amazon/carbonado/qe/EmptyQuery.java +++ b/src/main/java/com/amazon/carbonado/qe/EmptyQuery.java @@ -205,14 +205,14 @@ public final class EmptyQuery extends AbstractQuery { * Always returns an {@link EmptyCursor}. */ public Cursor fetch() { - return EmptyCursor.getEmptyCursor(); + return EmptyCursor.the(); } /** * Always returns an {@link EmptyCursor}. */ public Cursor fetchAfter(S start) { - return EmptyCursor.getEmptyCursor(); + return EmptyCursor.the(); } /** -- cgit v1.2.3