Whitespace change

This commit is contained in:
Lukas Eder 2020-03-18 13:33:31 +01:00
parent edc133bd4d
commit f3ff999494
14 changed files with 0 additions and 116 deletions

View File

@ -6726,9 +6726,7 @@ public class JavaGenerator extends AbstractGenerator {
return getJavaType(type1).equals(getJavaType(type2));
}
@SafeVarargs
private static final <T> List<T> list(T... objects) {
List<T> result = new ArrayList<>();

View File

@ -2535,9 +2535,7 @@ public abstract class AbstractDatabase implements Database {
return type;
}
@FunctionalInterface
private interface ExceptionRunnable {
void run() throws Exception;
}

View File

@ -310,9 +310,7 @@ public final class FilePattern {
/**
* A callback interface that allows for loading a {@link Source}.
*/
@FunctionalInterface
public interface Loader {
void load(Source source);
}

View File

@ -280,9 +280,7 @@ abstract class AbstractField<T> extends AbstractTypedNamed<T> implements Field<T
}
@Override
@SafeVarargs
public final SortField<Integer> sortAsc(T... sortList) {
return sortAsc(Arrays.asList(sortList));
}
@ -299,9 +297,7 @@ abstract class AbstractField<T> extends AbstractTypedNamed<T> implements Field<T
}
@Override
@SafeVarargs
public final SortField<Integer> sortDesc(T... sortList) {
return sortDesc(Arrays.asList(sortList));
}
@ -2007,9 +2003,7 @@ abstract class AbstractField<T> extends AbstractTypedNamed<T> implements Field<T
@Override
@Deprecated
@SafeVarargs
public final Field<T> greatest(T... others) {
return DSL.greatest(this, Tools.fields(others).toArray(EMPTY_FIELD));
}
@ -2022,9 +2016,7 @@ abstract class AbstractField<T> extends AbstractTypedNamed<T> implements Field<T
@Override
@Deprecated
@SafeVarargs
public final Field<T> least(T... others) {
return DSL.least(this, Tools.fields(others).toArray(EMPTY_FIELD));
}
@ -2109,9 +2101,7 @@ abstract class AbstractField<T> extends AbstractTypedNamed<T> implements Field<T
@Override
@Deprecated
@SafeVarargs
public final Field<T> coalesce(T option, T... options) {
return DSL.coalesce(this, Tools.combine(Tools.field(option, this), Tools.fields(options, this).toArray(EMPTY_FIELD)));
}

View File

@ -84,9 +84,7 @@ public abstract class AbstractKeys {
* @deprecated - [#6875] [#7158] - 3.11.0 - Please re-generate your code
*/
@Deprecated
@SafeVarargs
public static <R extends Record> UniqueKey<R> createUniqueKey(Table<R> table, TableField<R, ?>... fields) {
return Internal.createUniqueKey(table, fields);
}
@ -97,9 +95,7 @@ public abstract class AbstractKeys {
* @deprecated - [#6875] [#7158] - 3.11.0 - Please re-generate your code
*/
@Deprecated
@SafeVarargs
public static <R extends Record> UniqueKey<R> createUniqueKey(Table<R> table, String name, TableField<R, ?>... fields) {
return Internal.createUniqueKey(table, name, fields);
}
@ -110,9 +106,7 @@ public abstract class AbstractKeys {
* @deprecated - [#6875] [#7158] - 3.11.0 - Please re-generate your code
*/
@Deprecated
@SafeVarargs
public static <R extends Record, U extends Record> ForeignKey<R, U> createForeignKey(UniqueKey<U> key, Table<R> table, TableField<R, ?>... fields) {
return Internal.createForeignKey(key, table, fields);
}
@ -123,9 +117,7 @@ public abstract class AbstractKeys {
* @deprecated - [#6875] [#7158] - 3.11.0 - Please re-generate your code
*/
@Deprecated
@SafeVarargs
public static <R extends Record, U extends Record> ForeignKey<R, U> createForeignKey(UniqueKey<U> key, Table<R> table, String name, TableField<R, ?>... fields) {
return Internal.createForeignKey(key, table, name, fields);
}

View File

@ -125,9 +125,7 @@ final class BatchSingle extends AbstractBatch implements BatchBindStep {
}
@Override
@SafeVarargs
public final BatchSingle bind(Map<String, Object>... namedBindValues) {
List<Object> defaultValues = dsl.extractBindValues(query);

View File

@ -88,9 +88,7 @@ final class CreateTypeImpl extends AbstractRowCountQuery implements
return asEnum(Tools.inline(v));
}
@SafeVarargs
@Override
public final CreateTypeFinalStep asEnum(Field<String>... v) {
return asEnum(Arrays.asList(v));

View File

@ -8329,9 +8329,7 @@ public class DSL {
* @see Field#like(QuantifiedSelect)
*/
@Support
@SafeVarargs
public static <T> QuantifiedSelect<Record1<T>> all(Field<T>... fields) {
return new QuantifiedSelectImpl<>(Quantifier.ALL, fields);
}
@ -8411,9 +8409,7 @@ public class DSL {
* @see Field#like(QuantifiedSelect)
*/
@Support
@SafeVarargs
public static <T> QuantifiedSelect<Record1<T>> any(Field<T>... fields) {
return new QuantifiedSelectImpl<>(Quantifier.ANY, fields);
}
@ -12513,9 +12509,7 @@ public class DSL {
* The T-SQL <code>CHOOSE()</code> function.
*/
@Support
@SafeVarargs
public static <T> Field<T> choose(int index, Field<T>... values) {
return choose(val(index), values);
}
@ -12532,9 +12526,7 @@ public class DSL {
* The T-SQL <code>CHOOSE()</code> function.
*/
@Support
@SafeVarargs
public static <T> Field<T> choose(Field<Integer> index, Field<T>... values) {
return new Choose<>(index, values);
}
@ -18120,9 +18112,7 @@ public class DSL {
* The XML concat function.
*/
@Support({ POSTGRES })
@SafeVarargs
public static Field<XML> xmlconcat(Field<XML>... fields) {
return xmlconcat(asList(fields));
}
@ -18559,9 +18549,7 @@ public class DSL {
* </tr>
* </table>
*/
@SafeVarargs
@Support({ H2, HSQLDB, POSTGRES })
public static <T> Field<T[]> array(Field<T>... fields) {
return array(Arrays.asList(fields));
@ -22229,9 +22217,7 @@ public class DSL {
* Use {@link Table#as(String, String...)} to rename the resulting table and
* its columns.
*/
@SafeVarargs
@Support
public static <T1> Table<Record1<T1>> values(Row1<T1>... rows) {
return new Values<Record1<T1>>(rows).as("v", "c1");
@ -22263,9 +22249,7 @@ public class DSL {
* Use {@link Table#as(String, String...)} to rename the resulting table and
* its columns.
*/
@SafeVarargs
@Support
public static <T1, T2> Table<Record2<T1, T2>> values(Row2<T1, T2>... rows) {
return new Values<Record2<T1, T2>>(rows).as("v", "c1", "c2");
@ -22297,9 +22281,7 @@ public class DSL {
* Use {@link Table#as(String, String...)} to rename the resulting table and
* its columns.
*/
@SafeVarargs
@Support
public static <T1, T2, T3> Table<Record3<T1, T2, T3>> values(Row3<T1, T2, T3>... rows) {
return new Values<Record3<T1, T2, T3>>(rows).as("v", "c1", "c2", "c3");
@ -22331,9 +22313,7 @@ public class DSL {
* Use {@link Table#as(String, String...)} to rename the resulting table and
* its columns.
*/
@SafeVarargs
@Support
public static <T1, T2, T3, T4> Table<Record4<T1, T2, T3, T4>> values(Row4<T1, T2, T3, T4>... rows) {
return new Values<Record4<T1, T2, T3, T4>>(rows).as("v", "c1", "c2", "c3", "c4");
@ -22365,9 +22345,7 @@ public class DSL {
* Use {@link Table#as(String, String...)} to rename the resulting table and
* its columns.
*/
@SafeVarargs
@Support
public static <T1, T2, T3, T4, T5> Table<Record5<T1, T2, T3, T4, T5>> values(Row5<T1, T2, T3, T4, T5>... rows) {
return new Values<Record5<T1, T2, T3, T4, T5>>(rows).as("v", "c1", "c2", "c3", "c4", "c5");
@ -22399,9 +22377,7 @@ public class DSL {
* Use {@link Table#as(String, String...)} to rename the resulting table and
* its columns.
*/
@SafeVarargs
@Support
public static <T1, T2, T3, T4, T5, T6> Table<Record6<T1, T2, T3, T4, T5, T6>> values(Row6<T1, T2, T3, T4, T5, T6>... rows) {
return new Values<Record6<T1, T2, T3, T4, T5, T6>>(rows).as("v", "c1", "c2", "c3", "c4", "c5", "c6");
@ -22433,9 +22409,7 @@ public class DSL {
* Use {@link Table#as(String, String...)} to rename the resulting table and
* its columns.
*/
@SafeVarargs
@Support
public static <T1, T2, T3, T4, T5, T6, T7> Table<Record7<T1, T2, T3, T4, T5, T6, T7>> values(Row7<T1, T2, T3, T4, T5, T6, T7>... rows) {
return new Values<Record7<T1, T2, T3, T4, T5, T6, T7>>(rows).as("v", "c1", "c2", "c3", "c4", "c5", "c6", "c7");
@ -22467,9 +22441,7 @@ public class DSL {
* Use {@link Table#as(String, String...)} to rename the resulting table and
* its columns.
*/
@SafeVarargs
@Support
public static <T1, T2, T3, T4, T5, T6, T7, T8> Table<Record8<T1, T2, T3, T4, T5, T6, T7, T8>> values(Row8<T1, T2, T3, T4, T5, T6, T7, T8>... rows) {
return new Values<Record8<T1, T2, T3, T4, T5, T6, T7, T8>>(rows).as("v", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8");
@ -22501,9 +22473,7 @@ public class DSL {
* Use {@link Table#as(String, String...)} to rename the resulting table and
* its columns.
*/
@SafeVarargs
@Support
public static <T1, T2, T3, T4, T5, T6, T7, T8, T9> Table<Record9<T1, T2, T3, T4, T5, T6, T7, T8, T9>> values(Row9<T1, T2, T3, T4, T5, T6, T7, T8, T9>... rows) {
return new Values<Record9<T1, T2, T3, T4, T5, T6, T7, T8, T9>>(rows).as("v", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9");
@ -22535,9 +22505,7 @@ public class DSL {
* Use {@link Table#as(String, String...)} to rename the resulting table and
* its columns.
*/
@SafeVarargs
@Support
public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Table<Record10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>> values(Row10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>... rows) {
return new Values<Record10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>>(rows).as("v", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "c10");
@ -22569,9 +22537,7 @@ public class DSL {
* Use {@link Table#as(String, String...)} to rename the resulting table and
* its columns.
*/
@SafeVarargs
@Support
public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Table<Record11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>> values(Row11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>... rows) {
return new Values<Record11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>>(rows).as("v", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "c10", "c11");
@ -22603,9 +22569,7 @@ public class DSL {
* Use {@link Table#as(String, String...)} to rename the resulting table and
* its columns.
*/
@SafeVarargs
@Support
public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Table<Record12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>> values(Row12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>... rows) {
return new Values<Record12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>>(rows).as("v", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "c10", "c11", "c12");
@ -22637,9 +22601,7 @@ public class DSL {
* Use {@link Table#as(String, String...)} to rename the resulting table and
* its columns.
*/
@SafeVarargs
@Support
public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Table<Record13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>> values(Row13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>... rows) {
return new Values<Record13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>>(rows).as("v", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "c10", "c11", "c12", "c13");
@ -22671,9 +22633,7 @@ public class DSL {
* Use {@link Table#as(String, String...)} to rename the resulting table and
* its columns.
*/
@SafeVarargs
@Support
public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> Table<Record14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>> values(Row14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>... rows) {
return new Values<Record14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>>(rows).as("v", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "c10", "c11", "c12", "c13", "c14");
@ -22705,9 +22665,7 @@ public class DSL {
* Use {@link Table#as(String, String...)} to rename the resulting table and
* its columns.
*/
@SafeVarargs
@Support
public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> Table<Record15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>> values(Row15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>... rows) {
return new Values<Record15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>>(rows).as("v", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "c10", "c11", "c12", "c13", "c14", "c15");
@ -22739,9 +22697,7 @@ public class DSL {
* Use {@link Table#as(String, String...)} to rename the resulting table and
* its columns.
*/
@SafeVarargs
@Support
public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Table<Record16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>> values(Row16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>... rows) {
return new Values<Record16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>>(rows).as("v", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "c10", "c11", "c12", "c13", "c14", "c15", "c16");
@ -22773,9 +22729,7 @@ public class DSL {
* Use {@link Table#as(String, String...)} to rename the resulting table and
* its columns.
*/
@SafeVarargs
@Support
public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17> Table<Record17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17>> values(Row17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17>... rows) {
return new Values<Record17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17>>(rows).as("v", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "c10", "c11", "c12", "c13", "c14", "c15", "c16", "c17");
@ -22807,9 +22761,7 @@ public class DSL {
* Use {@link Table#as(String, String...)} to rename the resulting table and
* its columns.
*/
@SafeVarargs
@Support
public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18> Table<Record18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18>> values(Row18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18>... rows) {
return new Values<Record18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18>>(rows).as("v", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "c10", "c11", "c12", "c13", "c14", "c15", "c16", "c17", "c18");
@ -22841,9 +22793,7 @@ public class DSL {
* Use {@link Table#as(String, String...)} to rename the resulting table and
* its columns.
*/
@SafeVarargs
@Support
public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19> Table<Record19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>> values(Row19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>... rows) {
return new Values<Record19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>>(rows).as("v", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "c10", "c11", "c12", "c13", "c14", "c15", "c16", "c17", "c18", "c19");
@ -22875,9 +22825,7 @@ public class DSL {
* Use {@link Table#as(String, String...)} to rename the resulting table and
* its columns.
*/
@SafeVarargs
@Support
public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20> Table<Record20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20>> values(Row20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20>... rows) {
return new Values<Record20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20>>(rows).as("v", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "c10", "c11", "c12", "c13", "c14", "c15", "c16", "c17", "c18", "c19", "c20");
@ -22909,9 +22857,7 @@ public class DSL {
* Use {@link Table#as(String, String...)} to rename the resulting table and
* its columns.
*/
@SafeVarargs
@Support
public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21> Table<Record21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21>> values(Row21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21>... rows) {
return new Values<Record21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21>>(rows).as("v", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "c10", "c11", "c12", "c13", "c14", "c15", "c16", "c17", "c18", "c19", "c20", "c21");
@ -22943,9 +22889,7 @@ public class DSL {
* Use {@link Table#as(String, String...)} to rename the resulting table and
* its columns.
*/
@SafeVarargs
@Support
public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22> Table<Record22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22>> values(Row22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22>... rows) {
return new Values<Record22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22>>(rows).as("v", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "c10", "c11", "c12", "c13", "c14", "c15", "c16", "c17", "c18", "c19", "c20", "c21", "c22");

View File

@ -37,23 +37,17 @@
*/
package org.jooq.impl;
@FunctionalInterface
interface F0<R> {
R apply();
}
@FunctionalInterface
interface F1<T1, R> {
R apply(T1 t1);
}
@FunctionalInterface
interface F2<T1, T2, R> {
R apply(T1 t1, T2 t2);
}

View File

@ -101,9 +101,7 @@ public final class Internal {
/**
* Factory method for unique keys.
*/
@SafeVarargs
public static final <R extends Record> UniqueKey<R> createUniqueKey(Table<R> table, TableField<R, ?>... fields) {
return createUniqueKey(table, null, fields, true);
}
@ -111,9 +109,7 @@ public final class Internal {
/**
* Factory method for unique keys.
*/
@SafeVarargs
public static final <R extends Record> UniqueKey<R> createUniqueKey(Table<R> table, String name, TableField<R, ?>... fields) {
return createUniqueKey(table, name, fields, true);
}
@ -128,9 +124,7 @@ public final class Internal {
/**
* Factory method for foreign keys.
*/
@SafeVarargs
public static final <R extends Record, U extends Record> ForeignKey<R, U> createForeignKey(UniqueKey<U> key, Table<R> table, TableField<R, ?>... fields) {
return createForeignKey(key, table, null, fields);
}
@ -138,9 +132,7 @@ public final class Internal {
/**
* Factory method for foreign keys.
*/
@SafeVarargs
public static final <R extends Record, U extends Record> ForeignKey<R, U> createForeignKey(UniqueKey<U> key, Table<R> table, String name, TableField<R, ?>... fields) {
return createForeignKey(key, table, name, fields, true);
}

View File

@ -87,9 +87,7 @@ final class ReferenceImpl<R extends Record, O extends Record> extends AbstractKe
}
@Override
@SafeVarargs
public final Result<O> fetchParents(R... records) {
return fetchParents(list(records));
}
@ -100,9 +98,7 @@ final class ReferenceImpl<R extends Record, O extends Record> extends AbstractKe
}
@Override
@SafeVarargs
public final Result<R> fetchChildren(O... records) {
return fetchChildren(list(records));
}

View File

@ -190,9 +190,7 @@ final class ScopeStack<K, V> implements Iterable<V> {
/**
* Create a new value
*/
@FunctionalInterface
interface Constructor<V> {
V create(int scopeLevel);
}

View File

@ -2004,9 +2004,7 @@ final class Tools {
/**
* Create a new array
*/
@SafeVarargs
static final <T> T[] array(T... array) {
return array;
}
@ -2014,9 +2012,7 @@ final class Tools {
/**
* Reverse an array.
*/
@SafeVarargs
static final <T> T[] reverse(T... array) {
if (array == null)
return null;
@ -2033,9 +2029,7 @@ final class Tools {
/**
* Reverse iterate over an array.
*/
@SafeVarargs
static final <T> Iterable<T> reverseIterable(final T... array) {
return reverseIterable(Arrays.asList(array));
}
@ -2043,9 +2037,7 @@ final class Tools {
/**
* Reverse iterate over an array.
*/
@SafeVarargs
static final <T> Iterator<T> reverseIterator(final T... array) {
return reverseIterator(Arrays.asList(array));
}
@ -2090,9 +2082,7 @@ final class Tools {
* Use this rather than {@link Arrays#asList(Object...)} for
* <code>null</code>-safety
*/
@SafeVarargs
static final <T> List<T> list(T... array) {
return array == null ? Collections.<T>emptyList() : Arrays.asList(array);
}

View File

@ -1034,9 +1034,7 @@ public final class StringUtils {
* @since 2.0
* @since 3.0 Changed signature to use varargs
*/
@SafeVarargs
public static <T> String join(T... elements) {
return join(elements, null);
}