Categories
Latest version
v0.11.1
Updated on
Jun 3, 2022
Issues
301
version = 1
[[analyzers]]
name = "java"
enabled = true
[analyzers.meta]
runtime_version = 8
Anti-pattern
67
Bug risk
151
Performance
31
Security
51
Style
1
A call to a getXXX
or updateXXX
method of a result set was made where the field index is 0
. As ResultSet
fields start at index 1
, this is always a mistake.
This method uses toArray
with a non-zero sized array argument. This is less efficient than passing a zero-sized array.
Invalid regex strings will throw a PatternSyntaxException
at runtime.
Java arrays should not be declared using C-style array declaration syntax.
A thread was created using the default empty run method.