-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
CODENVY-256 Plugin Artik #1043
Conversation
Signed-off-by: Vitaliy Guliy <vguliy@codenvy.com>
final String machineId = machine.getId(); | ||
|
||
MachineDto deletedAction = registeredMachineMap.get(machineId); | ||
if (deletedAction == null) { |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
ok |
final MachineDto machine = machineEntry.getValue(); | ||
final MachineConfigDto machineConfig = machine.getConfig(); | ||
|
||
if (!this.getMachineCategory(machineConfig).equals(machineCategory)) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
* Provides methods which allow change visual representation of header of the list. | ||
* | ||
* @author Valeriy Svydenko | ||
* @author Oleksii Orel |
There was a problem hiding this comment.
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 :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
Signed-off-by: Vitaliy Guliy vguliy@codenvy.com