From 9157a1104770f0d4900c2fb6bf21b6871c42652c Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Thu, 18 Jun 2015 10:12:58 -0700 Subject: [PATCH] Build: Add Iterators.emptyIterator to forbidden apis As a follow up to #11741, this forbids Iterators.emptyIterator in favor the of builtin Collections.emptyIterator. --- dev-tools/src/main/resources/forbidden/all-signatures.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dev-tools/src/main/resources/forbidden/all-signatures.txt b/dev-tools/src/main/resources/forbidden/all-signatures.txt index 8335e84e770..b67be9d69f4 100644 --- a/dev-tools/src/main/resources/forbidden/all-signatures.txt +++ b/dev-tools/src/main/resources/forbidden/all-signatures.txt @@ -53,3 +53,5 @@ org.joda.time.DateTime#(int, int, int, int, int) org.joda.time.DateTime#(int, int, int, int, int, int) org.joda.time.DateTime#(int, int, int, int, int, int, int) org.joda.time.DateTime#now() + +com.google.common.collect.Iterators#emptyIterator() @ Use Collections.emptyIterator instead