Skip to content

Commit

Permalink
[github #4558]fix checkstyle comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wangmingliang-ms committed Sep 21, 2020
1 parent ede16c8 commit 523ceda
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="com.microsoft.azuretools.ijidea.ui.DeviceLoginWindow">
<grid id="27dc6" binding="jPanel" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<grid id="27dc6" binding="panel" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/>
<constraints>
<xy x="20" y="20" width="727" height="112"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

public class DeviceLoginWindow extends AzureDialogWrapper {
private static final String TITLE = "Azure Device Login";
private JPanel jPanel;
private JPanel panel;
private JEditorPane editorPanel;
private AuthenticationResult authenticationResult = null;
private Future<?> authExecutor;
Expand All @@ -70,7 +70,7 @@ public DeviceLoginWindow(final AuthenticationContext ctx, final DeviceCode devic
this.deviceCode = deviceCode;
setModal(true);
setTitle(TITLE);
editorPanel.setBackground(jPanel.getBackground());
editorPanel.setBackground(panel.getBackground());
editorPanel.setText(createHtmlFormatMessage());
editorPanel.addHyperlinkListener(e -> {
if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
Expand Down Expand Up @@ -149,12 +149,12 @@ private void closeDialog() {
ApplicationManager.getApplication().invokeLater(() -> {
final Window w = getWindow();
w.dispatchEvent(new WindowEvent(w, WindowEvent.WINDOW_CLOSING));
}, ModalityState.stateForComponent(jPanel));
}, ModalityState.stateForComponent(panel));
}

@Nullable
@Override
protected JComponent createCenterPanel() {
return jPanel;
return panel;
}
}

0 comments on commit 523ceda

Please sign in to comment.