Class RelianceOnDefaultCharsetRule

  • All Implemented Interfaces:
    AstVisitor, JavaVisitor, Rule, PropertySource

    public class RelianceOnDefaultCharsetRule
    extends AbstractJavaRulechainRule
    Detects constructors and methods that use the JVM's default character set instead of explicitly specifying a charset. This rule helps ensure platform-independent text encoding behavior.

    The rule only flags violations when the appropriate replacement method with explicit charset parameter is available in the target Java version.

    Since:
    7.17.0