From a19579a8d164a57460467ba87f8cd91f794abf86 Mon Sep 17 00:00:00 2001 From: Bas Leijdekkers Date: Sun, 1 May 2016 12:18:31 +0200 Subject: [PATCH] IG: do not write default values to settings --- .../ig/threading/SharedThreadLocalRandomInspectionBase.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/ig/threading/SharedThreadLocalRandomInspectionBase.java b/plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/ig/threading/SharedThreadLocalRandomInspectionBase.java index 1ad40a066096..776aa630dffd 100644 --- a/plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/ig/threading/SharedThreadLocalRandomInspectionBase.java +++ b/plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/ig/threading/SharedThreadLocalRandomInspectionBase.java @@ -39,9 +39,10 @@ public class SharedThreadLocalRandomInspectionBase extends BaseInspection { protected final MethodMatcher myMethodMatcher; public SharedThreadLocalRandomInspectionBase() { - myMethodMatcher = new MethodMatcher(true, "ignoreArgumentToMethods") + myMethodMatcher = new MethodMatcher(false, "ignoreArgumentToMethods") .add("java.math.BigInteger", ".*") - .add("java.util.Collections", "shuffle"); + .add("java.util.Collections", "shuffle") + .finishDefault(); } @Nls