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:
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
@@ -43,6 +43,7 @@ public class ArrayIterator<T> implements Iterator<T> {
|
||||
* @param objects
|
||||
* the objects
|
||||
*/
|
||||
@SafeVarargs
|
||||
public ArrayIterator(T... objects) {
|
||||
this.objects = objects;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user