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

Avoid so much duplicate code #895

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

techcobweb
Copy link
Contributor

@techcobweb techcobweb commented Aug 3, 2023

Signed-off-by: Mike Cobbett 77053+techcobweb@users.noreply.github.com

  • Lots of duplicate code in a deprecated constructor refactored into separate method.
  • Left alone the initialisation of the final variables.

Signed-off-by: Mike Cobbett <77053+techcobweb@users.noreply.github.com>
connection.addRequestProperty("zos3270-runid", this.runId);
connection.addRequestProperty("zos3270-terminalid", this.terminalId);
connection.addRequestProperty("zos3270-runid", runId);
connection.addRequestProperty("zos3270-terminalid", terminalId);
connection.setDoInput(true);
connection.setDoOutput(false);
connection.connect();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess we are assuming that garbage collection of the connection will close the connection, and we don't have to do it explicitly ?

Copy link
Member

Choose a reason for hiding this comment

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

Ideally we shouldnt. We should have the connection closed during provisionDiscard

@galasa-team
Copy link
Contributor

Build successful

1 similar comment
@galasa-team
Copy link
Contributor

Build successful

@galasa-team
Copy link
Contributor

Build successful

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

3 participants