@@ -88,14 +88,13 @@ public Response getDataForWorkspaceDialog(@QueryParam("space-conf-id") String sp
8888 .map (e -> new KeyValueItem (e .getId (), e .getName ()))
8989 .collect (Collectors .toList ());
9090
91-
9291 Collection <KeyValueItem > select2IssueTypes = ComponentAccessor .getConstantsManager ().getAllIssueTypeObjects ()
93- .stream ().map (e -> new KeyValueItem (e .getName (), e .getName ())).sorted (Comparator .comparing (o -> o . getId () )).collect (Collectors .toList ());
92+ .stream ().map (e -> new KeyValueItem (e .getName (), e .getName ())).sorted (Comparator .comparing (KeyValueItem :: getId )).collect (Collectors .toList ());
9493
9594 Collection <KeyValueItem > select2Projects = ComponentAccessor .getProjectManager ().getProjectObjects ()
9695 .stream ()
9796 .filter (e -> !usedJiraProjects .contains (e .getKey ()))
98- .map (e -> new KeyValueItem (e .getKey (), e .getKey ())).sorted (Comparator .comparing (o -> o . getId () ))
97+ .map (e -> new KeyValueItem (e .getKey (), e .getKey ())).sorted (Comparator .comparing (KeyValueItem :: getId ))
9998 .collect (Collectors .toList ());
10099
101100 Map <String , Object > data = new HashMap <>();
@@ -234,7 +233,13 @@ public Response getProxy() {
234233 outgoing .setHost (config .getHost ());
235234 outgoing .setPort (config .getPort () == null ? "" : config .getPort ().toString ());
236235 outgoing .setUsername (config .getUsername ());
237- outgoing .setPassword (PluginConstants .PASSWORD_REPLACE );
236+
237+ if (StringUtils .isNotEmpty (config .getPassword ())) {
238+ outgoing .setPassword (PluginConstants .PASSWORD_REPLACE );
239+ } else {
240+ outgoing .setPassword ("" );
241+ }
242+
238243 outgoing .setNonProxyHost (config .getNonProxyHost ());
239244 }
240245
@@ -276,7 +281,7 @@ public Response getSpaceConfigurations() {
276281 }
277282
278283 List <SpaceConfigurationOutgoing > outgoing = ConfigurationManager .getInstance ().getSpaceConfigurations ()
279- .stream ().map (c -> ConfigurationUtil . convertToOutgoing ( c ) ).collect (Collectors .toList ());
284+ .stream ().map (ConfigurationUtil :: convertToOutgoing ).collect (Collectors .toList ());
280285
281286 return Response .ok (outgoing ).build ();
282287 }
0 commit comments