From 1e94a5ccaa233141a45d7b7d1a7ec7a99dee98ef Mon Sep 17 00:00:00 2001 From: Rogiel Date: Tue, 11 Oct 2011 23:54:49 -0300 Subject: [PATCH] Fix small compiler warnings This commit fix small compiler warnings in a few Java classes --- .../l2jserver/util/geometry/Coordinate.java | 2 - .../data/template/character/Assassin.xml | 44 ++++++++++--------- .../world/filter/impl/KnownListFilter.java | 1 - .../tool/xml/TemplateSchemaGeneratorMain.java | 8 ++-- 4 files changed, 27 insertions(+), 28 deletions(-) diff --git a/l2jserver2-common/src/main/java/com/l2jserver/util/geometry/Coordinate.java b/l2jserver2-common/src/main/java/com/l2jserver/util/geometry/Coordinate.java index 35906c00c..4449b71a9 100644 --- a/l2jserver2-common/src/main/java/com/l2jserver/util/geometry/Coordinate.java +++ b/l2jserver2-common/src/main/java/com/l2jserver/util/geometry/Coordinate.java @@ -16,8 +16,6 @@ */ package com.l2jserver.util.geometry; -import javax.xml.bind.annotation.XmlType; - import org.apache.commons.math.geometry.Vector3D; /** diff --git a/l2jserver2-gameserver/data/template/character/Assassin.xml b/l2jserver2-gameserver/data/template/character/Assassin.xml index dcdd8e9fe..ebf2a6b3f 100644 --- a/l2jserver2-gameserver/data/template/character/Assassin.xml +++ b/l2jserver2-gameserver/data/template/character/Assassin.xml @@ -1,23 +1,25 @@ - - - - - - - - - - - - - - - - 69000 - - - - - + + + + + + + + + + + + + + + + 69000 + + + + + diff --git a/l2jserver2-gameserver/src/main/java/com/l2jserver/service/game/world/filter/impl/KnownListFilter.java b/l2jserver2-gameserver/src/main/java/com/l2jserver/service/game/world/filter/impl/KnownListFilter.java index 58fc833c9..bbf50411a 100644 --- a/l2jserver2-gameserver/src/main/java/com/l2jserver/service/game/world/filter/impl/KnownListFilter.java +++ b/l2jserver2-gameserver/src/main/java/com/l2jserver/service/game/world/filter/impl/KnownListFilter.java @@ -37,7 +37,6 @@ public class KnownListFilter extends AndFilter { * @param object * the object to locate known objects */ - @SuppressWarnings("unchecked") public KnownListFilter(PositionableObject object) { super(new InstanceFilter(PositionableObject.class), new RangeFilter(object, KNOWNLIST_RANGE), diff --git a/l2jserver2-tools/src/main/java/com/l2jserver/tool/xml/TemplateSchemaGeneratorMain.java b/l2jserver2-tools/src/main/java/com/l2jserver/tool/xml/TemplateSchemaGeneratorMain.java index 44b876940..af835ccca 100644 --- a/l2jserver2-tools/src/main/java/com/l2jserver/tool/xml/TemplateSchemaGeneratorMain.java +++ b/l2jserver2-tools/src/main/java/com/l2jserver/tool/xml/TemplateSchemaGeneratorMain.java @@ -4,7 +4,6 @@ import java.io.File; import java.io.IOException; import javax.xml.bind.JAXBContext; -import javax.xml.bind.JAXBException; import javax.xml.bind.SchemaOutputResolver; import javax.xml.transform.Result; import javax.xml.transform.stream.StreamResult; @@ -18,10 +17,11 @@ import com.l2jserver.service.game.template.XMLTemplateService.TeleportationTempl public class TemplateSchemaGeneratorMain { /** * @param args - * @throws JAXBException - * @throws IOException + * none + * @throws Exception + * any exception */ - public static void main(String[] args) throws JAXBException, IOException { + public static void main(String[] args) throws Exception { final File baseDir = new File("generated/schemas"); JAXBContext context = JAXBContext.newInstance(CharacterTemplate.class,