@Test public void testImmutableClasses() throws Exception { assertFalse(CloneHelper.needsCloning("string")); assertFalse(CloneHelper.needsCloning(1337L)); assertFalse(CloneHelper.needsCloning(new ImmutableClass("huuhaa"))); }
public static boolean needsCloning(Object object) { if (object == null) { return false; } if (object instanceof Message) { return needsCloning((Message) object); } return !isObjectConsideredImmutable(object); }
CloneHelper { public static boolean needsCloning(Object object) { if (object == null) { return false; } if (object instanceof Message) { return needsCloning((Message) object); } return !isObjectConsideredImmutable(object); } }
CloneHelper { public static boolean needsCloning(Object object) { if (object == null) { return false; } if (object instanceof Message) { return needsCloning((Message) object); } return !isObjectConsideredImmutable(object); }  }
CloneHelper { public static boolean needsCloning(Object object) { if (object == null) { return false; } if (object instanceof Message) { return needsCloning((Message) object); } return !isObjectConsideredImmutable(object); }  static boolean needsCloning(Object object); }
CloneHelper { public static boolean needsCloning(Object object) { if (object == null) { return false; } if (object instanceof Message) { return needsCloning((Message) object); } return !isObjectConsideredImmutable(object); }  static boolean needsCloning(Object object);  }