Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

Minor refactoring on most classes #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Minor refactoring on most classes #3

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Apr 10, 2020

Planned on adding a FEN parsing feature so I decided to give the code a minor clean-up.

Improvements:

  • Use of the Java code conventions on variable declaration.
  • Replaced wildcard imports with single imports and removed unused ones.
  • Use of already existing methods eg. isEmpty() instead of .size() == 0.
  • Merged some nested if statements.
  • Reformatted code indentation.

This branch passes all unit tests.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants