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

Remove all deprecated fields and classes for 4.0 #222

Merged
merged 6 commits into from Apr 10, 2020

Conversation

rantoniuk
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Apr 4, 2020

Pull Request Test Coverage Report for Build 855

  • 37 of 45 (82.22%) changed or added relevant lines in 1 file are covered.
  • 4 unchanged lines in 3 files lost coverage.
  • Overall coverage increased (+0.6%) to 56.498%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/main/java/hudson/plugins/jira/JiraSite.java 37 45 82.22%
Files with Coverage Reduction New Missed Lines %
src/main/java/hudson/plugins/jira/JiraSession.java 1 31.51%
src/main/java/hudson/plugins/jira/model/JiraVersion.java 1 0%
src/main/java/hudson/plugins/jira/JiraCreateIssueNotifier.java 2 68.31%
Totals Coverage Status
Change from base Build 818: 0.6%
Covered Lines: 1678
Relevant Lines: 2970

💛 - Coveralls

@rantoniuk rantoniuk marked this pull request as ready for review April 4, 2020 22:47
@rantoniuk
Copy link
Contributor Author

@olamy, @artkoshelev PTAL

src/main/java/hudson/plugins/jira/JiraSite.java Outdated Show resolved Hide resolved
try {
session = site.getSession();
session.getMyPermissions();
return FormValidation.ok("Success");
} catch (RestClientException e) {
} catch (RuntimeException e) {
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 significant change of method contract, seems not related to described changes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change was done to cover the frequent NPE case and to log it accordingly instead of throwing it as this method is supposed to return FormValidation error, so for me the contract stays the same.

src/test/java/hudson/plugins/jira/DescriptorImplTest.java Outdated Show resolved Hide resolved
@sonarcloud
Copy link

sonarcloud bot commented Apr 7, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 3 Code Smells

80.4% 80.4% Coverage
0.0% 0.0% Duplication

@rantoniuk rantoniuk added this to the 4.0 milestone Apr 7, 2020
@rantoniuk
Copy link
Contributor Author

@olamy any thoughts or things you are not happy about? 🤖

@rantoniuk rantoniuk merged commit c9c3aed into feature/4.0 Apr 10, 2020
@rantoniuk rantoniuk deleted the remove-deprecations branch April 10, 2020 13:40
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