ThrawnCA

Results 345 comments of ThrawnCA

> When really we want to call `public void error(String msg, Throwable t);` But you've provided three arguments.

"the log message that's generated isn't what's expected." Can you provide the expected vs actual log messages? I'm still confused about exactly what the problem is. What is incorrect about...

Truthfully, I think that your best tool here is unit test coverage. If you had unit tests covering the three branches - first half fails, second half fails, both halves...

It's more "if you expect `AssertionError` or any superclass of it, report that." IMO you don't need to look for an actual assertion in the method body. AssertionError is pretty...

Yeah, PRMC is meant for methods, so suppressing it on a field - I'm not surprised that that doesn't work. If it's more acceptable, you could move the initialisation into...

This is quite odd logic. If `something` is unrelated to the presence of the item in the collection, perhaps you could put the null check outside of the `contains` check?...

Does this reflect real code? I can't fathom what real-world situation would look like this.

I've constructed a minimal test case for this, and I get CNT_ROUGH_CONSTANT_VALUE and SPP_USE_MATH_CONSTANT for both usages, with no difference between `System.out` vs `Logger`. (@mebigfatguy Is SPP_USE_MATH_CONSTANT redundant?) package spotbugs.test;...

Could be, but I'm not getting any bug reports for that, with either usage.