Prefer "storage provider" to "dao" in logging messages for consistency with rest of code base

This commit is contained in:
Luck 2019-12-24 14:08:23 +00:00
parent 9a92920120
commit fae5ebe226
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B
5 changed files with 10 additions and 8 deletions

View File

@ -113,7 +113,7 @@ public class Storage {
try {
this.implementation.init();
} catch (Exception e) {
this.plugin.getLogger().severe("Failed to init storage dao");
this.plugin.getLogger().severe("Failed to init storage implementation");
e.printStackTrace();
}
}
@ -122,7 +122,7 @@ public class Storage {
try {
this.implementation.shutdown();
} catch (Exception e) {
this.plugin.getLogger().severe("Failed to shutdown storage dao");
this.plugin.getLogger().severe("Failed to shutdown storage implementation");
e.printStackTrace();
}
}

View File

@ -26,7 +26,7 @@
package me.lucko.luckperms.common.storage.implementation.custom;
/**
* Hook to allow external code to provide a storage dao
* Hook to allow external code to provide a storage implementation
*/
public final class CustomStorageProviders {
private CustomStorageProviders() {}

View File

@ -145,9 +145,10 @@ public class CombinedConfigurateStorage extends AbstractConfigurateStorage {
private FileWatcher.WatchedLocation watcher = null;
/**
* Creates a new configurate dao
* Creates a new configurate storage implementation
*
* @param plugin the plugin instance
* @param implementationName the name of this dao
* @param implementationName the name of this implementation
* @param fileExtension the file extension used by this instance, including a "." at the start
* @param dataFolderName the name of the folder used to store data
*/

View File

@ -66,9 +66,10 @@ public class SeparatedConfigurateStorage extends AbstractConfigurateStorage {
private FileWatcher.WatchedLocation trackWatcher = null;
/**
* Creates a new configurate dao
* Creates a new configurate storage implementation
*
* @param plugin the plugin instance
* @param implementationName the name of this dao
* @param implementationName the name of this implementation
* @param fileExtension the file extension used by this instance, including a "." at the start
* @param dataFolderName the name of the folder used to store data
*/

View File

@ -67,7 +67,7 @@ public class ExpireTemporaryTask implements Runnable {
// return true if the holder's io lock is currently held, false otherwise
private static boolean shouldSkip(PermissionHolder holder) {
// if the holder is currently being manipulated by the storage dao,
// if the holder is currently being manipulated by the storage impl,
// don't attempt to audit temporary permissions
if (!holder.getIoLock().tryLock()) {
// if #tryLock returns false, it means it's held by something else