Class LegacyNotEqual

java.lang.Object
org.openrewrite.python.marker.LegacyNotEqual
All Implemented Interfaces:
org.openrewrite.marker.Marker, org.openrewrite.rpc.RpcCodec<LegacyNotEqual>

public class LegacyNotEqual extends Object implements org.openrewrite.marker.Marker, org.openrewrite.rpc.RpcCodec<LegacyNotEqual>
Marker indicating that a J.Binary of type NotEqual was written using the Python 2 <> spelling rather than !=.

The default printer renders Binary.Type.NotEqual as !=; when this marker is present it emits the legacy <> spelling instead, so Python 2 sources round-trip byte-for-byte.

  • Constructor Details

    • LegacyNotEqual

      public LegacyNotEqual()
  • Method Details

    • rpcSend

      public void rpcSend(LegacyNotEqual after, org.openrewrite.rpc.RpcSendQueue q)
      Specified by:
      rpcSend in interface org.openrewrite.rpc.RpcCodec<LegacyNotEqual>
    • rpcReceive

      public LegacyNotEqual rpcReceive(LegacyNotEqual before, org.openrewrite.rpc.RpcReceiveQueue q)
      Specified by:
      rpcReceive in interface org.openrewrite.rpc.RpcCodec<LegacyNotEqual>