<?xml version="1.0" encoding="UTF-8"?>
<test-data>
    <test-code>
        <description><![CDATA[
Short as field
     ]]></description>
        <expected-problems>1</expected-problems>
        <code>
        	<![CDATA[
			    public class UsingShort
			    {
			        private short doNotUseShort = 0;
				}
		     ]]>
		</code>
    </test-code>
    <test-code>
        <description><![CDATA[
Short as local variable
     ]]></description>
        <expected-problems>1</expected-problems>
        <code><![CDATA[
    public class UsingShort
    {
		public UsingShort() {
			short shouldNotBeUsed = 1;
		}
	}
     ]]></code>
    </test-code>
     <test-code>
        <description><![CDATA[
Short as method return type
     ]]></description>
        <expected-problems>2</expected-problems>
        <code>
        <![CDATA[
		 public class UsingShort {
		   	public short badReturntype() {
				short var = 0;
				return var;
			}
		}
     	]]>
     	</code>
    </test-code>
         <test-code>
        <description><![CDATA[
Short as method return type
     ]]></description>
        <expected-problems>0</expected-problems>
        <code>
        <![CDATA[
    public class TypeNameWithshort
    {
		// … is not an infraction !
		int shortName = 0;

		public void avoidCommonMisinterpretation() {
			// … is not an infraction !
			int shortName = 0;
			TypeNameWithshort legal = new TypeNameWithshort(shortName);
		}

	}
		]]>
		</code>
    </test-code>
</test-data>
