Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CODENVY-256 Plugin Artik #1043

Merged
merged 1 commit into from
Apr 14, 2016
Merged

CODENVY-256 Plugin Artik #1043

merged 1 commit into from
Apr 14, 2016

Conversation

vitaliy-guliy
Copy link
Contributor

Signed-off-by: Vitaliy Guliy vguliy@codenvy.com

Signed-off-by: Vitaliy Guliy <vguliy@codenvy.com>
final String machineId = machine.getId();

MachineDto deletedAction = registeredMachineMap.get(machineId);
if (deletedAction == null) {
Copy link
Member

Choose a reason for hiding this comment

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

Getting value before removing it from map there is redundant.
You can combine it in one line:
if (registeredMachineMap.remove(machineId) == null)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let you create an issue for that

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed. Will be pushed in my next PR.

@vparfonov
Copy link
Contributor

ok

final MachineDto machine = machineEntry.getValue();
final MachineConfigDto machineConfig = machine.getConfig();

if (!this.getMachineCategory(machineConfig).equals(machineCategory)) {
Copy link
Member

Choose a reason for hiding this comment

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

Why you are using this link in some places if it may be omitted?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@vitaliy-guliy vitaliy-guliy merged commit f5c5ed6 into master Apr 14, 2016
@vitaliy-guliy vitaliy-guliy deleted the CODENVY-256 branch April 14, 2016 09:58
* Provides methods which allow change visual representation of header of the list.
*
* @author Valeriy Svydenko
* @author Oleksii Orel
Copy link
Contributor

Choose a reason for hiding this comment

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

You've created a new file, but you haven't mentioned as author :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

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

Successfully merging this pull request may close these issues.

6 participants