Added missing final modifiers.
This commit is contained in:
@@ -44,10 +44,10 @@ public class FaenorEventParser extends FaenorParser
|
||||
@Override
|
||||
public void parseScript(final Node eventNode, ScriptContext context)
|
||||
{
|
||||
String ID = attribute(eventNode, "ID");
|
||||
final String ID = attribute(eventNode, "ID");
|
||||
_eventDates = DateRange.parse(attribute(eventNode, "Active"), DATE_FORMAT);
|
||||
|
||||
Date currentDate = new Date();
|
||||
final Date currentDate = new Date();
|
||||
if (_eventDates.getEndDate().before(currentDate))
|
||||
{
|
||||
_log.info("Event ID: (" + ID + ") has passed... Ignored.");
|
||||
@@ -83,8 +83,8 @@ public class FaenorEventParser extends FaenorParser
|
||||
{
|
||||
try
|
||||
{
|
||||
String type = attribute(sysMsg, "Type");
|
||||
String message = attribute(sysMsg, "Msg");
|
||||
final String type = attribute(sysMsg, "Type");
|
||||
final String message = attribute(sysMsg, "Msg");
|
||||
|
||||
if (type.equalsIgnoreCase("OnJoin"))
|
||||
{
|
||||
@@ -112,9 +112,9 @@ public class FaenorEventParser extends FaenorParser
|
||||
{
|
||||
try
|
||||
{
|
||||
int[] items = IntList.parse(attribute(drop, "Items"));
|
||||
int[] count = IntList.parse(attribute(drop, "Count"));
|
||||
double chance = getPercent(attribute(drop, "Chance"));
|
||||
final int[] items = IntList.parse(attribute(drop, "Items"));
|
||||
final int[] count = IntList.parse(attribute(drop, "Count"));
|
||||
final double chance = getPercent(attribute(drop, "Chance"));
|
||||
|
||||
_bridge.addEventDrop(items, count, chance, _eventDates);
|
||||
}
|
||||
|
||||
@@ -72,10 +72,10 @@ public abstract class FaenorParser extends Parser
|
||||
{
|
||||
try
|
||||
{
|
||||
NodeList list = parentNode.getChildNodes();
|
||||
final NodeList list = parentNode.getChildNodes();
|
||||
for (int i = 0; i < list.getLength(); i++)
|
||||
{
|
||||
Node node = list.item(i);
|
||||
final Node node = list.item(i);
|
||||
if (node.getNodeName().equalsIgnoreCase(elementName))
|
||||
{
|
||||
return node.getTextContent();
|
||||
|
||||
@@ -66,8 +66,8 @@ public class FaenorScriptEngine extends ScriptEngine
|
||||
|
||||
public void parseScript(ScriptDocument script, ScriptContext context)
|
||||
{
|
||||
Node node = script.getDocument().getFirstChild();
|
||||
String parserClass = "faenor.Faenor" + node.getNodeName() + "Parser";
|
||||
final Node node = script.getDocument().getFirstChild();
|
||||
final String parserClass = "faenor.Faenor" + node.getNodeName() + "Parser";
|
||||
|
||||
Parser parser = null;
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user