mirror of
https://github.com/Qortal/qortal.git
synced 2025-02-15 19:55:48 +00:00
replaced String array declarations with Object array declarations to satisfy compiler warnings
This commit is contained in:
parent
e6d13536e0
commit
3043d1c2cb
@ -1215,7 +1215,7 @@ public class HSQLDBAccountRepository implements AccountRepository {
|
|||||||
sponseeSql.append(")");
|
sponseeSql.append(")");
|
||||||
|
|
||||||
// Create a new array to hold both
|
// Create a new array to hold both
|
||||||
String[] combinedArray = new String[realRewardShareRecipients.length + 1];
|
Object[] combinedArray = new Object[realRewardShareRecipients.length + 1];
|
||||||
|
|
||||||
// Add the single string to the first position
|
// Add the single string to the first position
|
||||||
combinedArray[0] = account;
|
combinedArray[0] = account;
|
||||||
@ -1439,7 +1439,7 @@ public class HSQLDBAccountRepository implements AccountRepository {
|
|||||||
sql.append(String.join(", ", Collections.nCopies(addressCount, "?")));
|
sql.append(String.join(", ", Collections.nCopies(addressCount, "?")));
|
||||||
sql.append(") ");
|
sql.append(") ");
|
||||||
sql.append("AND a.account = tx.recipient AND a.public_key != ats.creator AND asset_id = 0 ");
|
sql.append("AND a.account = tx.recipient AND a.public_key != ats.creator AND asset_id = 0 ");
|
||||||
String[] sponsees = addresses.toArray(new String[addressCount]);
|
Object[] sponsees = addresses.toArray(new Object[addressCount]);
|
||||||
ResultSet buySellResultSet = this.repository.checkedExecute(sql.toString(), sponsees);
|
ResultSet buySellResultSet = this.repository.checkedExecute(sql.toString(), sponsees);
|
||||||
|
|
||||||
return buySellResultSet;
|
return buySellResultSet;
|
||||||
@ -1456,7 +1456,7 @@ public class HSQLDBAccountRepository implements AccountRepository {
|
|||||||
sql.append(String.join(", ", Collections.nCopies(addressCount, "?")));
|
sql.append(String.join(", ", Collections.nCopies(addressCount, "?")));
|
||||||
sql.append(") ");
|
sql.append(") ");
|
||||||
sql.append("AND a.account != tx.recipient AND asset_id = 0 ");
|
sql.append("AND a.account != tx.recipient AND asset_id = 0 ");
|
||||||
String[] sponsees = addresses.toArray(new String[addressCount]);
|
Object[] sponsees = addresses.toArray(new Object[addressCount]);
|
||||||
|
|
||||||
return this.repository.checkedExecute(sql.toString(), sponsees);
|
return this.repository.checkedExecute(sql.toString(), sponsees);
|
||||||
}
|
}
|
||||||
@ -1490,7 +1490,7 @@ public class HSQLDBAccountRepository implements AccountRepository {
|
|||||||
txTypeTotalsSql.append(") and type in (10, 12, 40) ");
|
txTypeTotalsSql.append(") and type in (10, 12, 40) ");
|
||||||
txTypeTotalsSql.append("group by type order by type");
|
txTypeTotalsSql.append("group by type order by type");
|
||||||
|
|
||||||
String[] sponsees = sponseeAddresses.toArray(new String[sponseeCount]);
|
Object[] sponsees = sponseeAddresses.toArray(new Object[sponseeCount]);
|
||||||
ResultSet txTypeResultSet = this.repository.checkedExecute(txTypeTotalsSql.toString(), sponsees);
|
ResultSet txTypeResultSet = this.repository.checkedExecute(txTypeTotalsSql.toString(), sponsees);
|
||||||
return txTypeResultSet;
|
return txTypeResultSet;
|
||||||
}
|
}
|
||||||
@ -1502,7 +1502,7 @@ public class HSQLDBAccountRepository implements AccountRepository {
|
|||||||
avgBalanceSql.append(String.join(", ", Collections.nCopies(sponseeCount, "?")));
|
avgBalanceSql.append(String.join(", ", Collections.nCopies(sponseeCount, "?")));
|
||||||
avgBalanceSql.append(") and ASSET_ID = 0");
|
avgBalanceSql.append(") and ASSET_ID = 0");
|
||||||
|
|
||||||
String[] sponsees = sponseeAddresses.toArray(new String[sponseeCount]);
|
Object[] sponsees = sponseeAddresses.toArray(new Object[sponseeCount]);
|
||||||
return this.repository.checkedExecute(avgBalanceSql.toString(), sponsees);
|
return this.repository.checkedExecute(avgBalanceSql.toString(), sponsees);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1538,7 +1538,7 @@ public class HSQLDBAccountRepository implements AccountRepository {
|
|||||||
namesSql.append(String.join(", ", Collections.nCopies(sponseeCount, "?")));
|
namesSql.append(String.join(", ", Collections.nCopies(sponseeCount, "?")));
|
||||||
namesSql.append(")");
|
namesSql.append(")");
|
||||||
|
|
||||||
String[] sponsees = sponseeAddresses.toArray(new String[sponseeCount]);
|
Object[] sponsees = sponseeAddresses.toArray(new Object[sponseeCount]);
|
||||||
ResultSet namesResultSet = this.repository.checkedExecute(namesSql.toString(), sponsees);
|
ResultSet namesResultSet = this.repository.checkedExecute(namesSql.toString(), sponsees);
|
||||||
return namesResultSet;
|
return namesResultSet;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user