From 67be70e82ecc229107c6582b4ff3d03ec2f0c081 Mon Sep 17 00:00:00 2001 From: Karan Kumar Date: Fri, 10 Mar 2023 21:37:19 +0530 Subject: [PATCH] Removing the forbidden check until we find a fix for java 8 to unblock builds. (#13910) --- codestyle/druid-forbidden-apis.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/codestyle/druid-forbidden-apis.txt b/codestyle/druid-forbidden-apis.txt index cc55b8f2eb2..4810a17a077 100644 --- a/codestyle/druid-forbidden-apis.txt +++ b/codestyle/druid-forbidden-apis.txt @@ -41,7 +41,6 @@ java.util.HashSet#(int, float) @ Use com.google.collect.Sets#newHashSetWit java.util.LinkedHashSet#(int) @ Use com.google.collect.Sets#newLinkedHashSatWithExpectedSize(int) instead java.util.LinkedHashSet#(int, float) @ Use com.google.collect.Sets#newLinkedHashSatWithExpectedSize(int) instead java.util.LinkedList @ Use ArrayList or ArrayDeque instead -java.util.Properties#get(java.lang.Object) @ Properties#get method does not check the default map for values. Use Properties#getProperty() instead. java.util.Properties#getOrDefault(java.lang.Object,java.lang.Object) @ Properties#getOrDefault method does not check the default map for values. Use Properties#getProperty() instead. java.util.Random#() @ Use ThreadLocalRandom.current() or the constructor with a seed (the latter in tests only!) java.lang.Math#random() @ Use ThreadLocalRandom.current()