ApprovalTests.Java icon indicating copy to clipboard operation
ApprovalTests.Java copied to clipboard

PackageSettings class doesn't work with private constructor

Open talios opened this issue 2 years ago • 0 comments

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.

talios avatar Mar 18 '23 05:03 talios