1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-08 16:33:07 +00:00

Fix small compiler warnings

This commit fix small compiler warnings in a few Java classes
This commit is contained in:
2011-10-11 23:54:49 -03:00
parent 6a40656a38
commit 1e94a5ccaa
4 changed files with 27 additions and 28 deletions

View File

@@ -16,8 +16,6 @@
*/ */
package com.l2jserver.util.geometry; package com.l2jserver.util.geometry;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.math.geometry.Vector3D; import org.apache.commons.math.geometry.Vector3D;
/** /**

View File

@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<template:character xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" class="ASSASSIN" xsi:schemaLocation="http://schemas.l2jserver2.com/character ../character.xsd" xmlns:template="http://schemas.l2jserver2.com/character"> <template:character xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
class="ASSASSIN" xsi:schemaLocation="http://schemas.l2jserver2.com/character ../character.xsd"
xmlns:template="http://schemas.l2jserver2.com/character">
<stats crafter="false" level="20"> <stats crafter="false" level="20">
<hp add="33.0" modifier="0.37" base="379.0" /> <hp add="33.0" modifier="0.37" base="379.0" />
<mp add="9.9" modifier="0.14" base="144.0" /> <mp add="9.9" modifier="0.14" base="144.0" />

View File

@@ -37,7 +37,6 @@ public class KnownListFilter extends AndFilter<PositionableObject> {
* @param object * @param object
* the object to locate known objects * the object to locate known objects
*/ */
@SuppressWarnings("unchecked")
public KnownListFilter(PositionableObject object) { public KnownListFilter(PositionableObject object) {
super(new InstanceFilter<PositionableObject>(PositionableObject.class), super(new InstanceFilter<PositionableObject>(PositionableObject.class),
new RangeFilter(object, KNOWNLIST_RANGE), new RangeFilter(object, KNOWNLIST_RANGE),

View File

@@ -4,7 +4,6 @@ import java.io.File;
import java.io.IOException; import java.io.IOException;
import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.SchemaOutputResolver; import javax.xml.bind.SchemaOutputResolver;
import javax.xml.transform.Result; import javax.xml.transform.Result;
import javax.xml.transform.stream.StreamResult; import javax.xml.transform.stream.StreamResult;
@@ -18,10 +17,11 @@ import com.l2jserver.service.game.template.XMLTemplateService.TeleportationTempl
public class TemplateSchemaGeneratorMain { public class TemplateSchemaGeneratorMain {
/** /**
* @param args * @param args
* @throws JAXBException * none
* @throws IOException * @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"); final File baseDir = new File("generated/schemas");
JAXBContext context = JAXBContext.newInstance(CharacterTemplate.class, JAXBContext context = JAXBContext.newInstance(CharacterTemplate.class,