1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-06 07:32:46 +00:00

Fix Java 7 compiler warnings

Adds @SafeVarargs annotation to non-problematic varargs.
This commit is contained in:
2011-10-09 13:01:50 -03:00
parent 2e6fdb20bb
commit 6f680acd2c
16 changed files with 35 additions and 22 deletions

View File

@@ -474,6 +474,7 @@ public abstract class AbstractJDBCDatabaseService extends AbstractService
* @param objects
* the object list
*/
@SafeVarargs
public InsertUpdateQuery(T... objects) {
this(new ArrayIterator<T>(objects));
}

View File

@@ -357,6 +357,7 @@ public abstract class AbstractOrientDatabaseService extends AbstractService
* @param objects
* the object list
*/
@SafeVarargs
public InsertUpdateQuery(T... objects) {
this(new ArrayIterator<T>(objects));
}

View File

@@ -43,6 +43,7 @@ public class ArrayIterator<T> implements Iterator<T> {
* @param objects
* the objects
*/
@SafeVarargs
public ArrayIterator(T... objects) {
this.objects = objects;
}