package de.skuzzle.enforcer.restrictimports;

import org.apache.maven.enforcer.rule.api.EnforcerRuleException;
import org.apache.maven.enforcer.rule.api.EnforcerRuleHelper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Enforcer rule which restricts the usage of certain packages or classes within a Java
 * code base.
 *
 * @deprecated Use {@link de.skuzzle.enforcer.restrictimports.rule.RestrictImports}
 *             instead.
 * @author Simon Taddiken
 */
@Deprecated
public class RestrictImports
        extends de.skuzzle.enforcer.restrictimports.rule.RestrictImports {

    private static final Logger LOGGER = LoggerFactory.getLogger(RestrictImports.class);

    @Override
    public void execute(EnforcerRuleHelper helper) throws EnforcerRuleException {
        LOGGER.warn("");
        LOGGER.warn("Deprecation warning:");
        LOGGER.warn(
                "You are using the deprecated RestrictImports rule from '{}'. Please use the class '{}' instead",
                this.getClass().getSimpleName(),
                de.skuzzle.enforcer.restrictimports.rule.RestrictImports.class
                        .getSimpleName());
        LOGGER.warn("");
        super.execute(helper);
    }

}
@@ -1010,30 +1010,24 @@
 tClass().get
-Simple
 Name(),%0A    
@@ -1104,43 +1104,12 @@
 lass
-%0A                        .getSimple
+.get
 Name

Improve deprecation warning message