Direct use of private constants instead of getters.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user