fix(TDI-36824): use a better util class : ObjectUtil

This commit is contained in:
wang wei
2016-11-29 17:41:19 +08:00
parent 6858f0d718
commit bb1b9cbe7e
2 changed files with 27 additions and 54 deletions

View File

@@ -0,0 +1,27 @@
// ============================================================================
//
// Copyright (C) 2006-2016 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have received a copy of the agreement
// along with this program; if not, write to Talend SA
// 9 rue Pages 92150 Suresnes, France
//
// ============================================================================
package routines.system;
public class ObjectUtil {
/**
* Returns true if the provided reference is non-null otherwise returns false.
*
* @param obj
* @return
*/
public static boolean nonNull(Object obj) {
return obj != null;
}
}