#2343 - Rename Database.getAutoTune() to autoTune() with deprecation

This commit is contained in:
Rob Bygrave
2021-09-02 22:44:31 +12:00
parent f770b66f42
commit 239a444d4c
6 changed files with 15 additions and 7 deletions
@@ -333,7 +333,7 @@ public class TDSpiEbeanServer implements SpiEbeanServer {
}
@Override
public AutoTune getAutoTune() {
public AutoTune autoTune() {
return null;
}
@@ -32,8 +32,8 @@ public class TestBatchLazy extends BaseTestCase {
}
}
Ebean.getDefaultServer().getAutoTune().collectProfiling();
Ebean.getDefaultServer().getAutoTune().reportProfiling();
Ebean.getDefaultServer().autoTune().collectProfiling();
Ebean.getDefaultServer().autoTune().reportProfiling();
}
@@ -68,7 +68,7 @@ public class TestAutofetchTuneWithJoin extends BaseTestCase {
private static void collectUsage() {
Ebean.getDefaultServer().getAutoTune().collectProfiling();
Ebean.getDefaultServer().autoTune().collectProfiling();
}
}
@@ -117,7 +117,7 @@ public class TestAutoTuneProfiling extends BaseTestCase {
private static void collectUsage() {
DB.getDefault().getAutoTune().collectProfiling();
DB.getDefault().autoTune().collectProfiling();
}
}