All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dm.gradle.plugins.bundle.Objects.groovy Maven / Gradle / Ivy

There is a newer version: 0.10.0
Show newest version
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
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy