org.dm.gradle.plugins.bundle.Objects.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-bundle-plugin Show documentation
Show all versions of gradle-bundle-plugin Show documentation
Gradle plugin to generate OSGI bundles.
package org.dm.gradle.plugins.bundle
final class Objects {
private Objects() {
throw new AssertionError()
}
def static T requireNonNull(T t) {
requireNonNull(t, null)
}
def static T requireNonNull(T t, String message) {
if (t == null) {
throw new NullPointerException(message)
}
t
}
}