Bug 63203

Summary: Unit Tests : Replace use of @Deprecated by @VisibleForTesting for methods/constructors/classes made public for Unit Testing only
Product: JMeter Reporter: Philippe Mouawad <p.mouawad>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: NEW ---    
Severity: enhancement CC: p.mouawad
Priority: P2    
Version: 5.1   
Target Milestone: JMETER_5.1.1   
Hardware: All   
OS: All   

Description Philippe Mouawad 2019-02-24 14:11:55 UTC
To discourage use of Default Constructors added for JUnit, we use @Deprecated.

But this is not very nice for quality auditing tools nor very readable.

This enhancement will introduce replacement of this by a new annotation extracted from under ASL2 license:

https://github.com/aosp-mirror/platform_frameworks_base/blob/8b2c3a14603d163d7564e6f60286995079687690/core/java/com/android/internal/annotations/VisibleForTesting.java
Comment 1 Philippe Mouawad 2019-02-24 14:18:42 UTC
Author: pmouawad
Date: Sun Feb 24 14:14:09 2019
New Revision: 1854261

URL: http://svn.apache.org/viewvc?rev=1854261&view=rev
Log:
Bug 63203 - Unit Tests : Replace use of @Deprecated by @VisibleForTesting for methods/constructors/classes made public for Unit Testing only
Bugzilla Id: 63203

Added:
    jmeter/trunk/src/jorphan/org/apache/jorphan/documentation/
    jmeter/trunk/src/jorphan/org/apache/jorphan/documentation/VisibleForTesting.java   (with props)
Modified:
    jmeter/trunk/xdocs/changes.xml
Comment 2 Philippe Mouawad 2019-02-24 20:13:36 UTC
Author: pmouawad
Date: Sun Feb 24 20:12:09 2019
New Revision: 1854280

URL: http://svn.apache.org/viewvc?rev=1854280&view=rev
Log:
Fix javadoc errors

Modified:
    jmeter/trunk/src/jorphan/org/apache/jorphan/documentation/VisibleForTesting.java