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

Get rid of deprecated new instance calls #435

Closed
wants to merge 52 commits into from
Closed

Get rid of deprecated new instance calls #435

wants to merge 52 commits into from

Conversation

@FSchumacher
Copy link
Contributor

@FSchumacher FSchumacher commented Nov 27, 2018

Description

This basically is an update to #431

Get rid of calls to Class#newInstance() by replacing them with Class#getDeclaredConstructor()#newInstance()

And while I edited the classes I cleaned them up a bit, when eclipse showed warnings. I think those snippets should be committed separately, but I left them in here, so that they can be discussed if necessary.

Motivation and Context

Java 9 deprecates Class#newInstance().

How Has This Been Tested?

Tests should run when github merges this for testing.

Screenshots (if appropriate):

Types of changes

  • cleanup

Checklist:

FSchumacher added 30 commits Nov 27, 2018
Clarify the thrown exceptions of the createThinkTime method, while we
are here
With the introduction of varargs this can be written simpler. We don't
have to construct arrays here anymore.
asfgit pushed a commit that referenced this issue Dec 2, 2018
Part of #435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847986 13f79535-47bb-0310-9956-ffa450edef68
asfgit pushed a commit that referenced this issue Dec 2, 2018
Part of #435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847987 13f79535-47bb-0310-9956-ffa450edef68
asfgit pushed a commit that referenced this issue Dec 2, 2018
Part of #435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847989 13f79535-47bb-0310-9956-ffa450edef68
asfgit pushed a commit that referenced this issue Dec 2, 2018
Part of #435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847990 13f79535-47bb-0310-9956-ffa450edef68
@asfgit asfgit closed this in dcb7579 Dec 2, 2018
StorDm pushed a commit to etnetera/jmeter that referenced this issue Jan 7, 2021
Part of apache#435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847959 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: 0747ca7
StorDm pushed a commit to etnetera/jmeter that referenced this issue Jan 7, 2021
Part of apache#435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847960 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: 5470c38
StorDm pushed a commit to etnetera/jmeter that referenced this issue Jan 7, 2021
Part of apache#435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847961 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: d08e486
StorDm pushed a commit to etnetera/jmeter that referenced this issue Jan 7, 2021
Part of apache#435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847964 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: 431108b
StorDm pushed a commit to etnetera/jmeter that referenced this issue Jan 7, 2021
Part of apache#435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847965 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: 4f844ea
StorDm pushed a commit to etnetera/jmeter that referenced this issue Jan 7, 2021
Newer java versions have changed the method signatures to varargs. Use those varargs.
Part of apache#435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847966 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: b1c9cf0
StorDm pushed a commit to etnetera/jmeter that referenced this issue Jan 7, 2021
Part of apache#435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847969 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: 23d608a
StorDm pushed a commit to etnetera/jmeter that referenced this issue Jan 7, 2021
Part of apache#435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847972 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: 232583a
StorDm pushed a commit to etnetera/jmeter that referenced this issue Jan 7, 2021
Part of apache#435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847973 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: 8993041
StorDm pushed a commit to etnetera/jmeter that referenced this issue Jan 7, 2021
Part of apache#435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847974 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: 1744f9b
StorDm pushed a commit to etnetera/jmeter that referenced this issue Jan 7, 2021
Part of apache#435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847975 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: 569c141
StorDm pushed a commit to etnetera/jmeter that referenced this issue Jan 7, 2021
Part of apache#435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847976 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: b5f7acb
StorDm pushed a commit to etnetera/jmeter that referenced this issue Jan 7, 2021
Part of apache#435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847977 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: cac54e6
StorDm pushed a commit to etnetera/jmeter that referenced this issue Jan 7, 2021
Part of apache#435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847978 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: cb56c49
StorDm pushed a commit to etnetera/jmeter that referenced this issue Jan 7, 2021
Part of apache#435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847979 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: 970babc
StorDm pushed a commit to etnetera/jmeter that referenced this issue Jan 7, 2021
Part of apache#435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847980 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: 741468c
StorDm pushed a commit to etnetera/jmeter that referenced this issue Jan 7, 2021
Part of apache#435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847981 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: 53eefd1
StorDm pushed a commit to etnetera/jmeter that referenced this issue Jan 7, 2021
Part of apache#435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847982 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: 368c482
StorDm pushed a commit to etnetera/jmeter that referenced this issue Jan 7, 2021
Part of apache#435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847984 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: 4e894b3
StorDm pushed a commit to etnetera/jmeter that referenced this issue Jan 7, 2021
Part of apache#435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847985 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: 5835c0f
StorDm pushed a commit to etnetera/jmeter that referenced this issue Jan 7, 2021
Part of apache#435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847986 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: dc18430
StorDm pushed a commit to etnetera/jmeter that referenced this issue Jan 7, 2021
Part of apache#435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847987 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: dee641b
StorDm pushed a commit to etnetera/jmeter that referenced this issue Jan 7, 2021
Part of apache#435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847989 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: faf53bb
StorDm pushed a commit to etnetera/jmeter that referenced this issue Jan 7, 2021
Part of apache#435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847990 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: 7598524
StorDm pushed a commit to etnetera/jmeter that referenced this issue Jan 7, 2021
Closes apache#435
Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847991 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: dcb7579
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant