You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code inspections tool in IntelliJ IDEA generates thousands of warnings and errors when compiling this project. These range from trivial code quality warnings (e.g. unused imports or unnecessary toString calls) to more serious errors (e.g. for deprecated APIs). While some of these will be difficult to fix, many are trivial to resolve: we should take advantage of these by addressing them gradually in order to improve quality and performance.
What solution would you like?
We should gradually address these errors and warnings, starting with those that are either trivial to fix (i.e. they can be resolved with a batch "Quick Fix") or higher severity (i.e. they could cause bugs or other issues). The lists below represent a rough grouping of some of the errors and warnings that I think it would be easiest and/or most valuable to address.
Higher severity or possible bugs:
Deprecated API usage (983 warnings)
Usage of API marked for removal (66 errors)
Optional.get() is called without isPresent() check (11 warnings)
String comparison with == instead of equals() (2 warnings)
Is your feature request related to a problem?
The code inspections tool in IntelliJ IDEA generates thousands of warnings and errors when compiling this project. These range from trivial code quality warnings (e.g. unused imports or unnecessary
toString
calls) to more serious errors (e.g. for deprecated APIs). While some of these will be difficult to fix, many are trivial to resolve: we should take advantage of these by addressing them gradually in order to improve quality and performance.What solution would you like?
We should gradually address these errors and warnings, starting with those that are either trivial to fix (i.e. they can be resolved with a batch "Quick Fix") or higher severity (i.e. they could cause bugs or other issues). The lists below represent a rough grouping of some of the errors and warnings that I think it would be easiest and/or most valuable to address.
Higher severity or possible bugs:
Optional.get()
is called withoutisPresent()
check (11 warnings)==
instead ofequals()
(2 warnings)Trivial to fix:
final
(279 warnings) - Mark Constant Fields asfinal
#3191size == 0
can be replaced withisEmpty
(61 warnings)toString()
(102 warnings)@Getter
may be used (203 warnings)@Setter
may be used (47 warnings)String
operation (21 warnings)assertEquals()
arguments (131 warnings)String.equals()
can be replaced withString.isEmpty()
(5 warnings)String.format()
(8 warnings)throws
clause (190 warnings)final
modifier (382 warnings)switch
(59 warnings)record
class (58 warnings)SequencedCollection
method (e.g.getFirst()
) can be used (348 warnings)for
loop can be replaced with enhancedfor
loop (11 warnings)<>
(98 warnings)if
can be replaced withswitch
(21 warnings)What alternatives have you considered?
We could ignore these errors completely, or ignore some of them. We could choose to address different errors and/or prioritize them differently.
Do you have any additional context?
None.
The text was updated successfully, but these errors were encountered: