public static String addResourcePathToPackagePath(Class<?> clazz, String resourceName) {
    """
	Return a path suitable for use with {@code ClassLoader.getResource}
	(also suitable for use with {@code Class.getResource} by prepending a
	slash ('/') to the return value). Built by taking the package of the specified
	class file, converting all dots ('.') to slashes ('/'), adding a trailing slash
	if necessary, and concatenating the specified resource name to this.
	
	@param clazz        the Class whose package will be used as the base
	@param resourceName the resource name to append. A leading slash is optional.
	@return the built-up resource path
	@see ClassLoader#getResource
	@see Class#getResource
    """
        Preconditions.checkNotNull(resourceName, "Resource name must not be null");
        if (!resourceName.startsWith("/")) {
            return classPackageAsResourcePath(clazz) + "/" + resourceName;
        }
        return classPackageAsResourcePath(clazz) + resourceName;
    }
public static String addResourcePathToPackagePath(Class<?> clazz, String resourceName) {
        Preconditions.checkNotNull(resourceName, "Resource name must not be null");
        if (!resourceName.startsWith("/")) {
            return classPackageAsResourcePath(clazz) + "/" + resourceName;
        }
        return classPackageAsResourcePath(clazz) + resourceName;
    }
public static String addResourcePathToPackagePath ( Class < ? > clazz , String resourceName ) { Preconditions . checkNotNull ( resourceName , "Resource name must not be null" ) ; if ( ! resourceName . startsWith ( "/" ) ) { return classPackageAsResourcePath ( clazz ) + "/" + resourceName ; } return classPackageAsResourcePath ( clazz ) + resourceName ; }
Return a path suitable for use with {@code ClassLoader.getResource}
(also suitable for use with {@code Class.getResource} by prepending a
slash ('/') to the return value). Built by taking the package of the specified
class file, converting all dots ('.') to slashes ('/'), adding a trailing slash
if necessary, and concatenating the specified resource name to this.

@param clazz        the Class whose package will be used as the base
@param resourceName the resource name to append. A leading slash is optional.
@return the built-up resource path
@see ClassLoader#getResource
@see Class#getResource
Return a path suitable for use with { @code ClassLoader . getResource } ( also suitable for use with { @code Class . getResource } by prepending a slash ( / ) to the return value ) . Built by taking the package of the specified class file converting all dots ( . ) to slashes ( / ) adding a trailing slash if necessary and concatenating the specified resource name to this .