wwzeng1 / CoralME

A simple, fast and garbage-free matching engine order book that you can use as a starting point for your matching engines.
Apache License 2.0
0 stars 0 forks source link

Update OrderBook.java to use standalone RejectReason enum #13

Closed sweep-nightly[bot] closed 1 month ago

sweep-nightly[bot] commented 1 month ago

Purpose

The purpose of this pull request is to update the OrderBook.java file to use the standalone RejectReason enum instead of referencing it through the Order class. This change is necessary to resolve a compilation error.

Description

The changes made in this pull request include:

  1. Updating the import statement in OrderBook.java to use the standalone RejectReason enum.
  2. Changing the usage of RejectReason in the onOrderRejected method to use the standalone enum instead of referencing it through the Order class.
  3. Making a similar change in the Order.java file to ensure that the RejectReason enum is properly imported and used.

Summary

The key changes in this pull request are:

Fixes:

Failing CI in 068da99

In pull request https://github.com/wwzeng1/CoralME/pull/11. Continue the conversation here: http://localhost:3000/c/973ae3bc-5bd9-4e6b-8597-84fb1a351cbe.

To have Sweep make further changes, please add a comment to this PR starting with "Sweep:".

:book: For more information on how to use Sweep, please read our documentation.

Tracking ID: bc80c3b3c3