DeepSource
Dashboard Resources Pricing Discover Directory Log in

Run your first analysis.

Find thousands of code security and quality issues in your codebase, before they end up in production.

Start now
All analyzers Java
Java

Java

By DeepSource

Use Analyzer
Docs
Discuss
Maximum pool size of `ScheduledThreadPoolExecutor` cannot be changedJAVA-W0012
Anti-pattern

It is not possible to change the max pool size of a ScheduledThreadPoolExecutor using the setter functions inherited from ThreadPoolExecutor.

`synchronized` block is emptyJAVA-W0151
Anti-pattern

The code contains an empty synchronized block. This could confuse readers of this code later.

`Thread` passed where `Runnable` expectedJAVA-E0056
Anti-pattern

A Thread object is passed as a parameter to a method where a Runnable is expected. This is rather unusual, and may indicate a logic error or cause unexpected behavior.

Empty catch clauses may hide exceptionsJAVA-E0052
Anti-pattern

When a catch clause is empty, it essentially ignores any occurrences of the particular exception it handles. This could allow critical bugs to go undiagnosed because any relevant exceptions indicative of a bug would be discarded within this catch block.

Shift amounts outside the valid range may produce unexpected resultsJAVA-E0399
Anti-pattern

The code performs a shift of an int or long by a constant amount outside the acceptable range. This could potentially cause overflow or other similar errors and is at best very confusing.

  • …