The Economics of Generated Code
[]
Jake Wharton
final class UserModel extends JsonModel { private final String name ; private final String email ; // … @Override public String toString () { return "UserModel{" + "name=" + name + ", " + "email=" + email + ", " + "unknownPairs=" + getUnknownPairs () + '}' ; } } if (name == null) { - throw new NullPointerException("View 'name' required but not found"); + throw new NullPointerException("View '" + "name" + "' required but not found"); } TextView email = root.findViewById(R.id.email); if (email == null) { - throw new NullPointerException("View 'email' required but not found"); + throw new NullPointerException("View '" + "email" + "' required but not found"); } if (name == null) { - throw new NullPointerException("View 'name' required but not found"); + throw new NullPointerException("Missing…