Skip to content

Commit e86d6ee

Browse files
author
Vitaliy Boyko
committed
89: fixed static tests
1 parent b486190 commit e86d6ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/com/magento/idea/magento2plugin/actions/generation/dialog/NewUiComponentFormDialog.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ public void actionPerformed(final ActionEvent event) {
163163
);
164164

165165
formAreaSelect.addActionListener(e -> toggleAcl());
166-
acl.setText(getModuleName() + "::manage");
167166
formAreaSelect.setEnabled(false);
167+
acl.setText(getModuleName() + "::manage");
168168
}
169169

170170
protected void initButtonsTable() {

src/com/magento/idea/magento2plugin/actions/generation/generator/code/ButtonMethodGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public ButtonMethodGenerator(
6363
*/
6464
public void generate(PsiFile[] buttonClassFile, final PhpClass buttonClass) {
6565
final String template = getMethodTemplateByButtonType(buttonData.getButtonType());
66-
if (template.equals("")) {
66+
if (template.isEmpty()) {
6767
return;
6868
}
6969
WriteCommandAction.runWriteCommandAction(project, () -> {

0 commit comments

Comments
 (0)