<?xml version="1.0" encoding="UTF-8"?>
<test-data>

	<code-fragment id="use-right-case-for-date-format"><![CDATA[
		import java.text.SimpleDateFormat;
		class DateFormatTest {
        public void test(){
            SimpleDateFormat format = new SimpleDateFormat("YYYYMMDD"); //vio
            format = new SimpleDateFormat("yyyy/MM/dd");
            format = new SimpleDateFormat("yyyy-MM-dd");
            format = new SimpleDateFormat("yyyymmdd");
            format = new SimpleDateFormat("yyyy-MM-DD");
            format = new SimpleDateFormat("yy-MM-DD");
            format = new SimpleDateFormat("YY-MM-DD");
            format = new SimpleDateFormat("YYmd");
            format = new SimpleDateFormat("YYYY-M-d");
            format = new SimpleDateFormat("YYYY-dd");

        }
    }
    ]]>
	</code-fragment>

	<test-code>
		<description>Use right case to format date</description>
		<expected-problems>5</expected-problems>
		<expected-linenumbers>4,10,11,12,13</expected-linenumbers>
		<code-ref id="use-right-case-for-date-format" />
	</test-code>

</test-data>