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
    <!--- What types of changes does your code introduce? Delete as appropriate 
-->
    - Bug fix (non-breaking change which fixes an issue)
    
    ## Checklist:
    <!--- Go over all the following points, and put an `x` in all the boxes 
that apply. -->
    <!--- If you're unsure about any of these, don't hesitate to ask. We're 
here to help! -->
    - [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 <felix.schumacher@...>
Date:   2018-11-11T21:16:06Z

    Class#newInstance will be deprecated with Java 9

commit 224c7f41ff0c282baef55e6c5658a543aa4ee308
Author: Felix Schumacher <felix.schumacher@...>
Date:   2018-11-11T21:18:22Z

    Get rid of deprecation warning of Class#newInstance

commit 9807e46ecc40bbb655fc847f429467bc3657d366
Author: Felix Schumacher <felix.schumacher@...>
Date:   2018-11-11T21:23:16Z

    Get rid of deprecation warning for Class#newInstance

commit b36e2202d48b427d1dca7ecf62ccc23f9ae24f48
Author: Felix Schumacher <felix.schumacher@...>
Date:   2018-11-11T21:27:22Z

    Get rid of deprecation warnings for Class#newInstance

----


---

Reply via email to