Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.
This repository was archived by the owner on Oct 21, 2025. It is now read-only.

[bug] if语句中的condition恒为true (SameObjEquals) #89

@waooog

Description

@waooog

我们的自动化缺陷检测工具扫描 mdrill的源代码,发现了一个严重的bug:

路径:adhoc-internal/src/main/java/org/jfree/ui/SerialDateChooserPanel.java

代码片段:

protected Color getButtonColor(final SerialDate targetDate) {
...
        if (this.date.equals(this.date)) {
            return this.dateButtonColor;
      }
...
}

上述代码片段中的if语句的condition一直是true, 建议修改为:

  if (targetDate.equals(this.date)) {
            return this.dateButtonColor;
      }

Metadata

Metadata

Assignees

No one assigned

    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