From e5f7a28d80158740b3a21a1cbe688283cafe7c98 Mon Sep 17 00:00:00 2001 From: Rob Bygrave Date: Thu, 1 Jun 2023 20:00:50 +1200 Subject: [PATCH] Remove deprecated methods from ProfileLocation These methods are no longer used. --- .../src/main/java/io/ebean/ProfileLocation.java | 17 ----------------- .../org/tests/profile/ProfileLocationTest.java | 2 +- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/ebean-api/src/main/java/io/ebean/ProfileLocation.java b/ebean-api/src/main/java/io/ebean/ProfileLocation.java index 20a9a0d57..fa14ea8bd 100644 --- a/ebean-api/src/main/java/io/ebean/ProfileLocation.java +++ b/ebean-api/src/main/java/io/ebean/ProfileLocation.java @@ -30,23 +30,6 @@ public interface ProfileLocation { return XServiceProvider.profileLocationFactory().create(label); } - /** - * Deprecated in favor of {@link #create(String)}. - */ - @Deprecated - static ProfileLocation create(int lineNumber, String label) { - return create(label); - } - - /** - * Deprecated for removal - not used. - * Create and return a new ProfileLocation with a given location. - */ - @Deprecated - static ProfileLocation createAt(String location) { - return XServiceProvider.profileLocationFactory().createAt(location); - } - /** * Obtain the description returning true if this is the initial call. */ diff --git a/ebean-test/src/test/java/org/tests/profile/ProfileLocationTest.java b/ebean-test/src/test/java/org/tests/profile/ProfileLocationTest.java index 38597e004..8865acfd9 100644 --- a/ebean-test/src/test/java/org/tests/profile/ProfileLocationTest.java +++ b/ebean-test/src/test/java/org/tests/profile/ProfileLocationTest.java @@ -7,7 +7,7 @@ import static org.assertj.core.api.Assertions.assertThat; class ProfileLocationTest { - private static final ProfileLocation loc = ProfileLocation.create(12, "foo"); + private static final ProfileLocation loc = ProfileLocation.create("foo"); private static final ProfileLocation locB = ProfileLocation.create(); private static final ProfileLocation loc2 = ProfileLocation.create(); private static final ProfileLocation locWithLine = ProfileLocation.createWithLine();