com.thoughtworks.xstream.security.NullPermission Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.apache.servicemix.bundles.xstream
Show all versions of org.apache.servicemix.bundles.xstream
This OSGi bundle wraps ${pkgArtifactId} ${pkgVersion} jar file.
/*
* Copyright (C) 2014 XStream Committers.
* All rights reserved.
*
* Created on 09. January 2014 by Joerg Schaible
*/
package com.thoughtworks.xstream.security;
import com.thoughtworks.xstream.mapper.Mapper;
/**
* Permission for null
or XStream's null replacement type.
*
* @author Jörg Schaible
* @since 1.4.7
*/
public class NullPermission implements TypePermission {
/**
* @since 1.4.7
*/
public static final TypePermission NULL = new NullPermission();
public boolean allows(Class type) {
return type == null || type == Mapper.Null.class;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy