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

(Refactor) Move enums from Order.java to separate files and delete Order.java #2

Open sweep-nightly[bot] opened 1 month ago

sweep-nightly[bot] commented 1 month ago

Purpose

Currently, several enums are defined within the Order.java file. To improve code organization and maintainability, we move these enums to their own respective files.

Description

  1. Create separate .java files for each enum:
    • CancelReason.java
    • ExecuteSide.java
    • RejectReason.java
    • Side.java
    • TimeInForce.java
    • Type.java
  2. Move each enum to its respective file.
  3. Update import statements in all affected files.
  4. Ensure all unit tests pass after the refactoring.

Summary

Fixes

1. Continue the conversation here: http://localhost:3000/c/b3639ac8-0b15-420a-8a53-20804386d800.

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: 7aebe3ee09
sweep-nightly[bot] commented 1 month ago

No CI failures were found. If you think this is an error, check Sweep's permissions at https://github.com/organizations/wwzeng1/settings/installations/.