Skip to content

Commit 7d4487e

Browse files
committed
Call super equals and hash for webapp/function config
1 parent 85fa75f commit 7d4487e

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azure/toolkit/intellij/function/FunctionAppCreationDialog.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import com.microsoft.azuretools.azurecommons.helpers.Nullable;
1616

1717
import javax.swing.*;
18-
import java.util.Arrays;
1918

2019
import static com.microsoft.intellij.ui.messages.AzureBundle.message;
2120

@@ -54,7 +53,7 @@ protected JComponent createCenterPanel() {
5453

5554
private void createUIComponents() {
5655
// TODO: place custom component creation code here
57-
basicPanel = new AppServiceInfoBasicPanel<FunctionAppConfig>(project, FunctionAppConfig::getFunctionAppDefaultConfig) {
56+
basicPanel = new AppServiceInfoBasicPanel<>(project, FunctionAppConfig::getFunctionAppDefaultConfig) {
5857
@Override
5958
public FunctionAppConfig getData() {
6059
// Create AI instance with same name by default

PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azure/toolkit/lib/function/FunctionAppConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
@Setter
2121
@NoArgsConstructor
2222
@AllArgsConstructor
23-
@EqualsAndHashCode
23+
@EqualsAndHashCode(callSuper = true)
2424
@SuperBuilder(toBuilder = true)
2525
public class FunctionAppConfig extends AppServiceConfig {
2626
public static final Runtime DEFAULT_RUNTIME = Runtime.FUNCTION_WINDOWS_JAVA8;

PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azure/toolkit/lib/webapp/WebAppConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
@Setter
2121
@NoArgsConstructor
2222
@AllArgsConstructor
23-
@EqualsAndHashCode
23+
@EqualsAndHashCode(callSuper = true)
2424
@SuperBuilder(toBuilder = true)
2525
public class WebAppConfig extends AppServiceConfig {
2626
public static final Runtime DEFAULT_RUNTIME = Runtime.LINUX_JAVA8_TOMCAT9;

0 commit comments

Comments
 (0)