<?xml version="1.0" encoding="UTF-8"?>
<test-data>
    <test-code>
        <description><![CDATA[
ok, implements Cloneable
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
public class Foo implements Cloneable {
 void clone() {}
}
     ]]></code>
    </test-code>
    <test-code>
        <description><![CDATA[
bad, doesn't implement Cloneable
     ]]></description>
        <expected-problems>1</expected-problems>
        <code><![CDATA[
public class Foo {
 void clone() {}
}
     ]]></code>
    </test-code>
    <test-code>
        <description><![CDATA[
ok, not Object.clone since method has a param
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
public class Foo {
 void clone(int x) {}
}
     ]]></code>
    </test-code>
    <test-code>
        <description><![CDATA[
ok, doesn't implement Cloneable but only throw CloneNotSupportedException
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
public class Foo {
 final Object clone() { throw new CloneNotSupportedException(); }
}
     ]]></code>
    </test-code>
    <test-code>
        <description><![CDATA[
ok, inner class implements Cloneable
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
public class Bar {
 class Foo implements Cloneable {
  void clone() {}
 }
}
     ]]></code>
    </test-code>
    <test-code>
        <description><![CDATA[
Bug 1698550, nr 1
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
public class Foo {
public final Object clone() throws CloneNotSupportedException {
throw new CloneNotSupportedException();
}
}
     ]]></code>
    </test-code>
    <test-code>
        <description><![CDATA[
Bug 1698550, nr 2
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
public final class Foo {
public Object clone() throws CloneNotSupportedException {
throw new CloneNotSupportedException();
}
}
     ]]></code>
    </test-code>
</test-data>
