Skip to content

Confusing method name fillRect() #152

Open
@wysohn

Description

@wysohn

When I see the fillRect() method, I assumed it would fill the entire region from pos1 to pos2, yet in the code, it covers only the boundary of the rectangle.

Javadocs also says Fills a rectangle inside the inventory using the given positions. yet it's not really true as items will not be 'filled' inside the rectangle except for the boundaries.

In fact, fillBorders() method merely calls fillRect() using the position from 0,0 to row-1,col-1, so they are essentially the same method.

is it intended behavior?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions