Skip to content
This repository was archived by the owner on Jul 27, 2022. It is now read-only.
This repository was archived by the owner on Jul 27, 2022. It is now read-only.

Condition that always returns true #34

@lifove

Description

@lifove

Hi
I've also found a code smell (possibly a bug).

Path: com.windowtester.swt.runtime/src/com/windowtester/runtime/swt/condition/eclipse/ActiveEditorCondition.java

 61                 public boolean test() {
 62                         IFile file = getActiveFile();
 63                         if (file == null)
 64                                 return false;
 65                         actualPath = file.getLocation();
 66                         return actualPath.equals(actualPath) == isActive;
 67                 }

In Line 66, "actualPath.equals(actualPath)" will always return true. It should be like this?

66                         return this.actualPath.equals(actualPath) == isActive;

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions