Class SanitizedMarkerPrinter

java.lang.Object
org.openrewrite.gradle.SanitizedMarkerPrinter
All Implemented Interfaces:
org.openrewrite.PrintOutputCapture.MarkerPrinter

public class SanitizedMarkerPrinter extends Object implements org.openrewrite.PrintOutputCapture.MarkerPrinter
A PrintOutputCapture that sanitizes the diff of informational markers, so these aren't accidentally committed to source control.
  • Constructor Details

    • SanitizedMarkerPrinter

      public SanitizedMarkerPrinter()
  • Method Details

    • beforeSyntax

      public String beforeSyntax(org.openrewrite.marker.Marker marker, org.openrewrite.Cursor cursor, UnaryOperator<String> commentWrapper)
      Specified by:
      beforeSyntax in interface org.openrewrite.PrintOutputCapture.MarkerPrinter
    • afterSyntax

      public String afterSyntax(org.openrewrite.marker.Marker marker, org.openrewrite.Cursor cursor, UnaryOperator<String> commentWrapper)
      Specified by:
      afterSyntax in interface org.openrewrite.PrintOutputCapture.MarkerPrinter