From 275a8431e06946987ab84f9282e892489d510389 Mon Sep 17 00:00:00 2001 From: "Gary D. Gregory" Date: Mon, 13 Jun 2016 06:57:56 +0000 Subject: [PATCH] Use Java 7 method instead of Apache Commons Lang 3. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1748095 13f79535-47bb-0310-9956-ffa450edef68 --- src/test/java/org/apache/commons/csv/CSVPrinterTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/apache/commons/csv/CSVPrinterTest.java b/src/test/java/org/apache/commons/csv/CSVPrinterTest.java index 99d41645..95495be2 100644 --- a/src/test/java/org/apache/commons/csv/CSVPrinterTest.java +++ b/src/test/java/org/apache/commons/csv/CSVPrinterTest.java @@ -35,9 +35,9 @@ import java.util.Date; import java.util.Iterator; import java.util.LinkedList; import java.util.List; +import java.util.Objects; import java.util.Random; -import org.apache.commons.lang3.ObjectUtils; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -111,7 +111,7 @@ public class CSVPrinterTest { private T[] expectNulls(final T[] original, final CSVFormat csvFormat) { final T[] fixed = original.clone(); for (int i = 0; i < fixed.length; i++) { - if (ObjectUtils.equals(csvFormat.getNullString(), fixed[i])) { + if (Objects.equals(csvFormat.getNullString(), fixed[i])) { fixed[i] = null; } }