#2344 - Rename Database.getDataSource() to dataSource() with deprecation

This commit is contained in:
Rob Bygrave
2021-09-02 22:48:09 +12:00
parent 239a444d4c
commit 12c5e9ea5d
12 changed files with 33 additions and 18 deletions
@@ -30,7 +30,7 @@ public class ClusterTest {
public void testBothNear() {
// ensure the default server exists first
final Database db = DB.getDefault();
Database other = createOther(db.getPluginApi().getDataSource());
Database other = createOther(db.getPluginApi().dataSource());
new QPerson()
.name.eq("Someone")
@@ -62,7 +62,7 @@ public class ClusterTest {
public void test() throws InterruptedException {
// ensure the default server exists first
final Database db = DB.getDefault();
Database other = createOther(db.getPluginApi().getDataSource());
Database other = createOther(db.getPluginApi().dataSource());
for (int i = 0; i < 10; i++) {
Person foo = new Person("name " + i);