Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JBIDE-19146] load legacy connections #664

Merged
merged 1 commit into from Jun 12, 2015

Conversation

adietish
Copy link
Member

No description provided.

@alexeykazakov
Copy link
Contributor

Looks good to me.

List<String> connections = new ArrayList<String>();
connections.addAll(Arrays.asList(ExpressCorePreferences.INSTANCE.loadConnections()));
connections.addAll(Arrays.asList(ExpressCorePreferences.INSTANCE.loadLegacyConnections()));
return connections.toArray(new String[connections.size()]);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's a convoluted way to concatenate arrays. Rather use commons-lang ArrayUtils.addAll(first, second);

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, good catch, thx

@fbricon
Copy link
Member

fbricon commented Jun 12, 2015

+1 to apply once arrays concatenation is fixed

@maxandersen
Copy link
Member

why is there such thing as legacy connections ? didn't we keep the old format even for the new ones ?

@adietish
Copy link
Member Author

This was where in some old version connections were stored. The current impl was not reading thos, something I now added.

@adietish adietish merged commit 1216c44 into jbosstools:jbosstools-4.3.0.Beta1x Jun 12, 2015
@adietish adietish deleted the JBIDE-19146 branch June 12, 2015 20:44
@maxandersen
Copy link
Member

so its fixing and additional issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants