<commit_before>/*
 * Copyright (C) 2014 XStream Committers.
 * All rights reserved.
 *
 * Created on 19. January 2014 by <NAME>
 */
package com.thoughtworks.xstream.security;

import net.sf.cglib.proxy.Proxy;


/**
 * Permission for any array type.
 * 
 * @author <NAME>
 * @since upcoming
 */
public class CGLIBProxyTypePermission implements TypePermission {
    /**
     * @since upcoming
     */
    public static final TypePermission PROXIES = new CGLIBProxyTypePermission();

    @Override
    public boolean allows(final Class<?> type) {
        return type != null<commit_msg>Fix NPE in CGLIBProxyTypePermission.<commit_after>/*
 * Copyright (C) 2014 XStream Committers.
 * All rights reserved.
 *
 * Created on 19. January 2014 by <NAME>
 */
package com.thoughtworks.xstream.security;

import net.sf.cglib.proxy.Proxy;


/**
 * Permission for any array type.
 * 
 * @author J&ouml;<NAME>
 * @since upcoming
 */
public class CGLIBProxyTypePermission implements TypePermission {
    /**
     * @since upcoming
     */
    public static final TypePermission PROXIES = new CGLIBProxyTypePermission();

    @Override
    public boolean allows(final Class<?> type) {
        return type != null && type != Object.class && !type.isInterface()
{'fraction_non_alphanumeric': 0.11102172164119067, 'fraction_numerical': 0.016090104585679808, 'mean_word_length': 3.395759717314488, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '262367', 'n_tokens_mistral': 384, 'n_tokens_neox': 354, 'n_words': 109}