About 26,700,000 results
Open links in new tab
  1. java - Unnecessary @SuppressWarnings ("unused") - Stack Overflow

    Mar 2, 2012 · In the code in your question, the @SuppressWarnings("unused") annotation is unnecessary because the method is either overriding another method from a superclass or …

  2. How to resolve Unneccessary Stubbing exception - Stack Overflow

    May 29, 2017 · Unnecessary stubbings detected in test class: Test Clean & maintainable test code requires zero unnecessary code. Following stubbings are unnecessary (click to navigate to relevant …

  3. android - Build Fails with 'Unnecessary safe call on a non-null ...

    Apr 15, 2025 · Build Fails with 'Unnecessary safe call on a non-null receiver of type Jvm!' after upgrading React Native to 0.76.9 (-Werror specified) Asked 7 months ago Modified 7 months ago …

  4. Getting IDE0079 ("Remove unnecessary suppression") to play well with ...

    Mar 2, 2024 · But doing so will cause an IDE0079 warning, "Remove unnecessary suppression". Just like ND1212, I don't want to turn off IDE0079 in general either, but I do want to turn it off in this …

  5. java - How to deal with Mockito's ... - Stack Overflow

    Oct 28, 2022 · And if you are fine with unnecessary definitions of mock behavior because some of the arguments of the parameterized test will lead to the mock being called while others won't, lenient …

  6. java - UnnecessaryStubbingException: Unnecessary stubbings detected ...

    Sep 20, 2023 · The way the unnecessary stubbing detection works is by, for each test case, calculating which stubbings were provided and which were required. If those 2 things are different, it will throw. …

  7. typescript - Why is ESLint complaining about "Unnecessary conditional ...

    May 11, 2022 · Why is ESLint complaining about "Unnecessary conditional" when checking if an array value exists? Asked 3 years, 6 months ago Modified 1 year, 3 months ago Viewed 12k times

  8. java - Mockito throws UnnecessaryStubbingException for stub defined …

    May 21, 2021 · Unnecessary stubbings detected. Clean & maintainable test code requires zero unnecessary code. Following stubbings are unnecessary (click to navigate to relevant line of code): …

  9. c# - How to turn off graying out unused usings? - Stack Overflow

    Aug 21, 2015 · Open your project references > Analyzers and turn off IDE0005. This will disable the 'visual cue' (grayed out hint) but you will still be able to select the quick action 'Remove unnecessary …

  10. casting - Remove redundant casts in Java - Stack Overflow

    Feb 18, 2017 · I've been generifying some Java code that used lots of casts, and now most of them are redundant and unnecessary. It could be very tedious to inspect all the usages of the code to remove …