Skip to content
This repository has been archived by the owner on Apr 9, 2018. It is now read-only.

🎨 Update code to google format #2

Merged
merged 5 commits into from
Oct 4, 2017
Merged

Conversation

RyanMeulenkamp
Copy link
Contributor

Resolves: #1

/**
* Stops the GamePadManager (stops the SDL thread in the native lib).
*
* Note: waits for the the SDL thread to finish.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Useless @note

*
* Note: waits for the the SDL thread to finish.
*
* @return True if stopped, false if not.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Description could be clearer. E.g. true if successfully stopped. Now it reads as if it is possible it will keep running or smth

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also @code should be used here. I'll create an issue.

@thumbnail
Copy link
Member

It's an okay start but since a refactor is necessary I don't see the added value in this PR

@RyanMeulenkamp
Copy link
Contributor Author

One thing at a time.

Codacy remarked two issues:

* Unscoped field `gamePadManager` which could also have been local
* Empty method body `Main#onGamePadError(String error)`

/// Value of the enumeration.
private final int value;
/// Value of the enumeration.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these type of comments don't conform to the google style

*
* @param value The value of the controller axis.
*/
GamePadAxis(int value) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm guessing these should be explicitly public

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now it's package private right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You guys know this is the only possible scope (implicitly private) for enum constructors in java?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ssst

@RyanMeulenkamp RyanMeulenkamp merged commit 6734c9c into master Oct 4, 2017
@RyanMeulenkamp RyanMeulenkamp deleted the ryan/fix-code-format branch October 4, 2017 18:31
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.

3 participants