Inspectopedia 2024.3 Help

JVM languages

API must already be removed   New in this release

Reports declarations marked with @ApiStatus.ScheduledForRemoval that should have been removed in the current version of the declaring library.

Call to 'System.getProperty(str)' could be simplified   New in this release

Reports the usage of method System.getProperty(str) and suggests a fix in 2 cases: System.getProperty("path.separator") -> File.pathSeparator System.getProperty("line.separator") -> System.lineSeparator() The second one is not only less error-prone but is likely to be faster, as System.lineSeparator() returns cached value, while System.getProperty("line.separator") each time calls to Properties (Hashtable or CHM depending on implementation).

Call to 'Thread.run()'   New in this release

Reports calls to run() on java.lang.Thread or any of its subclasses.

Call to 'equals()' or 'hashCode()' on 'URL' object   New in this release

Reports hashCode() and equals() calls on java.net.URL objects and calls that add URL objects to maps and sets.

Class, interface, or method should not be extended   New in this release

Reports classes, interfaces and methods that extend, implement, or override API elements marked with @ApiStatus.NonExtendable.

Empty method   New in this release

Reports empty methods that can be removed.

Illegal dependency on internal package   New in this release

Reports references in modules without module-info.java on packages which are not exported from named modules.

Illegal package dependencies   New in this release

Reports illegal dependencies between scopes according to the dependency rules given.

Incorrect MIME Type declaration   New in this release

Reports incorrect MIME types (for example, in Content-Type strings) for HTTP servers and clients.

Inspection suppression annotation   New in this release

Reports comments or annotations suppressing inspections.

Method can only be overridden   New in this release

Reports calls to API methods marked with @ApiStatus.OverrideOnly.

Missing '@Deprecated' annotation on scheduled for removal API   New in this release

Reports declarations marked with @ApiStatus.ScheduledForRemoval without @Deprecated.

Non-safe string is passed to safe method   New in this release

Reports cases when a non-safe object is passed to a method with a parameter marked with @Untainted annotations, returned from annotated methods or assigned to annotated fields, parameters, or local variables.

Non-safe string is used as SQL   New in this release

Reports cases for Java and Kotlin languages when a non-safe string is passed to a method as a SQL query.

Possibly blocking call in non-blocking context   New in this release

Reports thread-blocking method calls in code fragments where threads should not be blocked.

Serializable class without 'serialVersionUID'  

Reports classes that implement Serializable and do not declare a serialVersionUID field.

Unknown HTTP header   New in this release

Reports unknown HTTP headers that do not match any publicly known headers.

Unstable API Usage   New in this release

Reports usages of an API marked with one of the annotations as unstable.

Unstable type is used in signature   New in this release

Reports declarations of classes, methods, and fields that reference an unstable API type in the signature, but are not marked with the same unstable annotation.

Usages of API which isn't available at the configured language level   New in this release

Reports usages of the API that is unavailable at the configured language level.

Usages of ApiStatus.@Obsolete   New in this release

Reports declarations (classes, methods, fields) annotated as @ApiStatus.Obsolete.

Logging  

Sub-group of 6 inspections that provide checks for Logging

Test frameworks  

Sub-group of 7 inspections that provide checks for Test frameworks

Last modified: 11 September 2024