[GitHub] jmeter pull request #431: Class#newInstance deprecation with Java 9

2018-11-27 Thread FSchumacher
Github user FSchumacher closed the pull request at:

https://github.com/apache/jmeter/pull/431


---


[GitHub] jmeter pull request #431: Class#newInstance deprecation with Java 9

2018-11-11 Thread FSchumacher
GitHub user FSchumacher opened a pull request:

https://github.com/apache/jmeter/pull/431

Class#newInstance deprecation with Java 9

## Description
Change invocation of Class#newInstance to Class#getConstructor#newInstance
And do some cleanup using StringUtils.isNotBlank

## Motivation and Context
Java 9 deprecates Class#newInstance, so this will get rid of the 
deprecation warnings

## How Has This Been Tested?
ran tests

## Screenshots (if appropriate):

## Types of changes

- Bug fix (non-breaking change which fixes an issue)

## Checklist:


- [x] My code follows the [code style][style-guide] of this project.

[style-guide]: https://wiki.apache.org/jmeter/CodeStyleGuidelines


You can merge this pull request into a Git repository by running:

$ git pull https://github.com/FSchumacher/jmeter newinstance-deprecation

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/jmeter/pull/431.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #431


commit 3d8aa9c075770a669c9e8eb441e2d30d211b8fa9
Author: Felix Schumacher 
Date:   2018-11-11T21:16:06Z

Class#newInstance will be deprecated with Java 9

commit 224c7f41ff0c282baef55e6c5658a543aa4ee308
Author: Felix Schumacher 
Date:   2018-11-11T21:18:22Z

Get rid of deprecation warning of Class#newInstance

commit 9807e46ecc40bbb655fc847f429467bc3657d366
Author: Felix Schumacher 
Date:   2018-11-11T21:23:16Z

Get rid of deprecation warning for Class#newInstance

commit b36e2202d48b427d1dca7ecf62ccc23f9ae24f48
Author: Felix Schumacher 
Date:   2018-11-11T21:27:22Z

Get rid of deprecation warnings for Class#newInstance




---