Class ConstructorSafetyValidator.ConstructorSafetyReport

java.lang.Object
se.deversity.asynctest.diagnostics.ConstructorSafetyValidator.ConstructorSafetyReport
Enclosing class:
ConstructorSafetyValidator

public static class ConstructorSafetyValidator.ConstructorSafetyReport extends Object
  • Field Details

    • unsafeObjects

      public final Set<String> unsafeObjects
      Objects whose reference escaped their constructor.
    • possiblyIncompleteConstructions

      public final Set<String> possiblyIncompleteConstructions
      Objects whose construction was recorded as started and never recorded as finished. Not part of hasIssues(): a caller that instruments the start and forgets the end produces this without a defect, so it is context for a finding rather than one.
    • fieldsAccessedDuringConstruction

      public final Set<String> fieldsAccessedDuringConstruction
      Fields read by another thread before the constructor returned.
    • structuredViolations

      public final List<Violation> structuredViolations
      The findings as Violations, at the severity the text resolved to (#801).
  • Constructor Details

    • ConstructorSafetyReport

      public ConstructorSafetyReport()
  • Method Details

    • hasIssues

      public boolean hasIssues()
      Returns whether there are issues.
      Returns:
      whether there are issues
    • toString

      public String toString()
      Overrides:
      toString in class Object