Direct use of private constants instead of getters.

This commit is contained in:
MobiusDev
2018-06-24 15:33:19 +00:00
parent 6eee61d0d8
commit d265813c40
989 changed files with 12563 additions and 12892 deletions

View File

@@ -176,7 +176,7 @@ public abstract class BaseGameServerRegister
*/
protected static abstract class BaseTask implements Runnable
{
private ResourceBundle _bundle;
protected ResourceBundle _bundle;
/**
* Sets the bundle.
@@ -204,10 +204,10 @@ public abstract class BaseGameServerRegister
public void showError(String msg, Throwable t)
{
String title;
if (getBundle() != null)
if (_bundle != null)
{
title = getBundle().getString("error");
msg += Config.EOL + getBundle().getString("reason") + ' ' + t.getLocalizedMessage();
title = _bundle.getString("error");
msg += Config.EOL + _bundle.getString("reason") + ' ' + t.getLocalizedMessage();
}
else
{
@@ -232,7 +232,7 @@ public abstract class BaseGameServerRegister
}
catch (SQLException e)
{
showError(getBundle().getString("sqlErrorUnregisterAll"), e);
showError(_bundle.getString("sqlErrorUnregisterAll"), e);
}
}
}