Skip to content

Commit 6073730

Browse files
Replace record with class
1 parent b73c4bf commit 6073730

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

ui/jetbrains/src/main/java/com/albertoventurini/graphdbplugin/jetbrains/ui/datasource/interactions/neo4j/bolt/Neo4jBoltDataSourceDialog.java

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,24 @@ private void createUIComponents() {
185185
loadingIcon = new AsyncProcessIcon("validateConnectionIcon");
186186
}
187187

188-
private record Data(
189-
String dataSourceName,
190-
String protocol,
191-
String host,
192-
String port,
193-
String authType,
194-
String user,
195-
String password) { }
188+
private static final class Data {
189+
190+
private final String dataSourceName;
191+
private final String protocol;
192+
private final String host;
193+
private final String port;
194+
private final String authType;
195+
private final String user;
196+
private final String password;
197+
198+
public Data(String dataSourceName, String protocol, String host, String port, String authType, String user, String password) {
199+
this.dataSourceName = dataSourceName;
200+
this.protocol = protocol;
201+
this.host = host;
202+
this.port = port;
203+
this.authType = authType;
204+
this.user = user;
205+
this.password = password;
206+
}
207+
}
196208
}

0 commit comments

Comments
 (0)