Info
Showing all detectors for the Java language with info severity.
Mandatory methods must be called after object creation.
Missing timeout checks on awaitTermination might make the code harder to debug.
Missing check on the result of createNewFile might cause data loss.
Missing statements to record the underlying cause of InvocationTargetException.
Do not catch and throw the same exception.
Format strings appropriately for their argument types. For example, use %d
, not %s
, for integers.
Sudden service shutdown might prevent a graceful termination of threads.
Set an explicit AWS Region to avoid cold start delays in AWS client initialization.
Client constructors are now deprecated in favor of using builders to create the client.
Suggest using auto-pagination instead of manual pagination.
Missing checks might cause silent failures that are harder to debug.
Batch operations are more efficient than looping to process several items at the same time.
When you change Amazon SQS message visibility, check for MessageNotInFlight
exceptions.
Using Stream::anyMatch
is more readable and convenient than using a chain of Stream::filter
, Stream::findFirst
or Stream::findAny
and Optional::isPresent
.