List of usage examples for org.springframework.util Assert noNullElements
@Deprecated public static void noNullElements(@Nullable Object[] array)
From source file:org.lexevs.dao.database.utility.DaoUtility.java
public static String createKey(String uri, String version) { Assert.noNullElements(new String[] { uri, version }); return String.valueOf((uri + version).hashCode()); }
From source file:org.springframework.integration.amqp.rule.BrokerRunning.java
/** * Ensure the broker is running and has an empty queue (which can be addressed via the default exchange). * * @return a new rule that assumes an existing running broker *///from w w w.ja v a 2s . c om public static BrokerRunning isRunningWithEmptyQueues(Queue... queues) { Assert.notNull(queues); Assert.noNullElements(queues); return new BrokerRunning(queues); }
From source file:org.springframework.integration.amqp.rule.BrokerRunning.java
/** * Ensure the broker is running and has an empty queue (which can be addressed via the default exchange). * * @return a new rule that assumes an existing running broker */// w ww.j a va 2 s. com public static BrokerRunning isRunningWithEmptyQueues(String... queues) { Assert.notNull(queues); Assert.noNullElements(queues); return new BrokerRunning(queues); }