<?xml version="1.0" encoding="UTF-8"?>
<test-data
    xmlns="http://pmd.sourceforge.net/rule-tests"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://pmd.sourceforge.net/rule-tests http://pmd.sourceforge.net/rule-tests_1_0_0.xsd">

    <test-code>
        <description>bad, local variable of type Hashtable</description>
        <expected-problems>2</expected-problems>
        <code><![CDATA[
import java.util.Hashtable;
public class Foo {
    void bar() {
        Hashtable h = new Hashtable();
    }
}
        ]]></code>
    </test-code>

    <test-code>
        <description>bad, param of type Hashtable</description>
        <expected-problems>1</expected-problems>
        <code><![CDATA[
import java.util.Hashtable;
public class Foo {
 void bar(Hashtable h) {
 }
}
     ]]></code>
    </test-code>
    <test-code>
        <description> ok, not java.util.Vector</description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
import foo.Hashtable;
public class Foo {
    void bar(Hashtable h) {
    }
}
        ]]></code>
    </test-code>
    <test-code>
        <description>Properties #4433</description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
            import java.util.Properties;
            public class Foo {
                Properties field;
                void bar(Properties h) {
                    Properties local;
                }
            }
            ]]></code>
    </test-code>
</test-data>
