Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 29424200BDF for ; Sun, 4 Dec 2016 01:14:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 2032A160B28; Sun, 4 Dec 2016 00:14:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8D490160B16 for ; Sun, 4 Dec 2016 01:13:59 +0100 (CET) Received: (qmail 94899 invoked by uid 500); 4 Dec 2016 00:13:58 -0000 Mailing-List: contact notifications-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ofbiz.apache.org Delivered-To: mailing list notifications@ofbiz.apache.org Received: (qmail 94886 invoked by uid 99); 4 Dec 2016 00:13:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Dec 2016 00:13:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8BCCC2C1F54 for ; Sun, 4 Dec 2016 00:13:58 +0000 (UTC) Date: Sun, 4 Dec 2016 00:13:58 +0000 (UTC) From: "Paul Foxworthy (JIRA)" To: notifications@ofbiz.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (OFBIZ-4427) Runtime errors with UtilValidate.isEmpty(Object) and IsNotEmpty should be caught during compilation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 04 Dec 2016 00:14:00 -0000 [ https://issues.apache.org/jira/browse/OFBIZ-4427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paul Foxworthy updated OFBIZ-4427: ---------------------------------- Summary: Runtime errors with UtilValidate.isEmpty(Object) and IsNotEmpty should be caught during compilation (was: Possible runtime errors with UtilValidate.isEmpty(Object) should be rather caught during compilation) > Runtime errors with UtilValidate.isEmpty(Object) and IsNotEmpty should be caught during compilation > --------------------------------------------------------------------------------------------------- > > Key: OFBIZ-4427 > URL: https://issues.apache.org/jira/browse/OFBIZ-4427 > Project: OFBiz > Issue Type: Improvement > Components: framework > Affects Versions: Trunk > Reporter: Jacques Le Roux > Assignee: Jacques Le Roux > Priority: Minor > Labels: UtilValidate.isEmpty > Attachments: OFBIZ-4427.patch, OFBIZ-4427_isEmpty.patch > > > Hence we need to remove the UtilValidate.isEmpty(Object) method and provide methods that accept explicit types. > Adrian then (http://markmail.org/message/37rtrnulhmyzxfoo) suggested that > bq. Scripting languages should use a facade class that provides methods for working with generic Objects or providing default behaviors. -- This message was sent by Atlassian JIRA (v6.3.4#6332)