<?xml version="1.0" encoding="UTF-8"?>
<test-data>
    <test-code>
        <description><![CDATA[
failure case, returning literal
     ]]></description>
        <expected-problems>1</expected-problems>
        <code><![CDATA[
 public class Foo {
  int bar() {
   return (2); 
  }
 }
     ]]></code>
    </test-code>
    <test-code>
        <description><![CDATA[
ok, complex expression
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
 public class Foo {
  int bar() {
   return (2+2); 
  }
 }
     ]]></code>
    </test-code>
    <test-code>
        <description><![CDATA[
bad, returning variable in parens
     ]]></description>
        <expected-problems>1</expected-problems>
        <code><![CDATA[
 public class Foo {
  int bar(int y) {
   return (y); 
  }
 }
     ]]></code>
    </test-code>
    <test-code>
        <description><![CDATA[
ok, returning comparison
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
 public class Foo {
  int bar(int y) {
   return (x=y); 
  }
 }
     ]]></code>
    </test-code>
    <test-code>
        <description><![CDATA[
typecast
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
public class Foo {
   public void bar(Object o) {
           return ((Exception) o).getMessage();
   }
}
     ]]></code>
    </test-code>
</test-data>
