Reduced visibility where possible

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2017-05-31 14:34:18 +02:00
parent 1837dfa35e
commit 8ee568a0e0

View File

@ -30,7 +30,7 @@ public class PersistenceManager {
* @return instance * @return instance
*/ */
@Contract(pure = true) @Contract(pure = true)
public static PersistenceManager getInstance() { static PersistenceManager getInstance() {
return instance; return instance;
} }
@ -52,7 +52,7 @@ public class PersistenceManager {
* *
* @return transaction ID * @return transaction ID
*/ */
public synchronized int beginTransaction() { synchronized int beginTransaction() {
_transactions.put(_nextTransactionNumber, false); _transactions.put(_nextTransactionNumber, false);
log(_nextTransactionNumber, -1, "BOT", ""); log(_nextTransactionNumber, -1, "BOT", "");
// return the next transaction number and increase it by one afterwards // return the next transaction number and increase it by one afterwards
@ -65,7 +65,7 @@ public class PersistenceManager {
* @param taid * @param taid
* transaction ID * transaction ID
*/ */
public void commit(int taid) { void commit(int taid) {
if (!_transactions.containsKey(taid)) { if (!_transactions.containsKey(taid)) {
throw new IllegalArgumentException("No transaction with given ID exists."); throw new IllegalArgumentException("No transaction with given ID exists.");
} }
@ -86,7 +86,7 @@ public class PersistenceManager {
* @param data * @param data
* data * data
*/ */
public void write(int taid, int pageid, String data) { void write(int taid, int pageid, String data) {
if (!_transactions.containsKey(taid)) { if (!_transactions.containsKey(taid)) {
throw new IllegalArgumentException("No transaction with given ID exists."); throw new IllegalArgumentException("No transaction with given ID exists.");
} }