Skip to content

PackageSettings class doesn't work with private constructor #370

Open
@talios

Description

@talios

After starting to use OpenRewrite I see that the application of the Hide Utility Class Constructor rule causes ApprovalTests to not use the PackageSettings.java class:

final class PackageSettings {
  static String ApprovalBaseDirectory = "../resources/";

  private PackageSettings() {
  }
}

Given the ApprovalBaseDirectory is static, the class shouldn't need to instantiated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions