1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-06 07:32:46 +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;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.math.geometry.Vector3D;
/**

View File

@@ -1,23 +1,25 @@
<?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">
<stats crafter="false" level="20">
<hp add="33.0" modifier="0.37" base="379.0"/>
<mp add="9.9" modifier="0.14" base="144.0"/>
<cp add="15.8" modifier="0.22" base="185.1"/>
<attack accuracy="35" critical="45" evasion="35">
<physical speed="300.0" damage="4.0"/>
<magical speed="333.0" damage="6.0"/>
</attack>
<defense>
<physical value="80.0"/>
<magical value="41.0"/>
</defense>
<move walk="122.0" run="122.0"/>
<base wit="12" dex="34" men="26" con="32" str="41" int="25"/>
<maxload>69000</maxload>
</stats>
<collision>
<male heigth="24.0" radius="7.5"/>
<female heigth="23.5" radius="7.0"/>
</collision>
<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">
<hp add="33.0" modifier="0.37" base="379.0" />
<mp add="9.9" modifier="0.14" base="144.0" />
<cp add="15.8" modifier="0.22" base="185.1" />
<attack accuracy="35" critical="45" evasion="35">
<physical speed="300.0" damage="4.0" />
<magical speed="333.0" damage="6.0" />
</attack>
<defense>
<physical value="80.0" />
<magical value="41.0" />
</defense>
<move walk="122.0" run="122.0" />
<base wit="12" dex="34" men="26" con="32" str="41" int="25" />
<maxload>69000</maxload>
</stats>
<collision>
<male heigth="24.0" radius="7.5" />
<female heigth="23.5" radius="7.0" />
</collision>
</template:character>

View File

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

View File

@@ -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,