Skip to content

[optimize] Hard-coded Optimize #661

@kitalkuyo-gita

Description

@kitalkuyo-gita

Description:

Currently, some values ​​in NettyMessage.java are hard-coded, such as the magic number 0xBADC0FFE, which needs to be constantized.

  • ClusterConstants.java: Various prefixes and constants can be extracted as configuration
  • NettyMessage.java: The magic number 0xBADC0FFE needs to be constantized
  • StringLiteralUtil.java: The multiplier array {1000, 100, 10, 1} needs to be constantized.
  • LocalClient.java: The JSON template string needs to be extracted.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions