view test/runtime/6929067/T.java @ 4862:f457154eee8b

7140882: Don't return booleans from methods returning pointers Summary: Changed "return false" to "return NULL" Reviewed-by: dholmes, rottenha Contributed-by: dbhole@redhat.com
author brutisso
date Mon, 30 Jan 2012 12:36:49 +0100
parents 3b3d12e645e7
children
line wrap: on
line source

public class T
{
  public static boolean foo(boolean bar)
  {
    return bar;
  }

  public static void printIt()
  {
    System.out.println("Hello");
  }
}