Bug 52075 - JMeterProperty.clone() currently returns Object; it should return JMeterProperty
Summary: JMeterProperty.clone() currently returns Object; it should return JMeterProperty
Status: RESOLVED FIXED
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.5.1
Hardware: PC Windows XP
: P2 enhancement (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-24 12:49 UTC by Sebb
Modified: 2011-10-24 13:18 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebb 2011-10-24 12:49:37 UTC
JMeterProperty.clone() currently returns Object; it should return JMeterProperty.

All the existing implementations return an instance of JMeterProperty, so would not need any code changes.

This would improve the code as various casts can then be removed.
Comment 1 Sebb 2011-10-24 13:18:24 UTC
URL: http://svn.apache.org/viewvc?rev=1188141&view=rev
Log:
Bug 52075 - JMeterProperty.clone() currently returns Object; it should return JMeterProperty

Modified:
   jakarta/jmeter/trunk/src/core/org/apache/jmeter/testelement/AbstractTestElement.java
   jakarta/jmeter/trunk/src/core/org/apache/jmeter/testelement/property/AbstractProperty.java
   jakarta/jmeter/trunk/src/core/org/apache/jmeter/testelement/property/BooleanProperty.java
   jakarta/jmeter/trunk/src/core/org/apache/jmeter/testelement/property/CollectionProperty.java
   jakarta/jmeter/trunk/src/core/org/apache/jmeter/testelement/property/DoubleProperty.java
   jakarta/jmeter/trunk/src/core/org/apache/jmeter/testelement/property/FloatProperty.java
   jakarta/jmeter/trunk/src/core/org/apache/jmeter/testelement/property/FunctionProperty.java
   jakarta/jmeter/trunk/src/core/org/apache/jmeter/testelement/property/IntegerProperty.java
   jakarta/jmeter/trunk/src/core/org/apache/jmeter/testelement/property/JMeterProperty.java
   jakarta/jmeter/trunk/src/core/org/apache/jmeter/testelement/property/LongProperty.java
   jakarta/jmeter/trunk/src/core/org/apache/jmeter/testelement/property/MapProperty.java
   jakarta/jmeter/trunk/src/core/org/apache/jmeter/testelement/property/NullProperty.java
   jakarta/jmeter/trunk/src/core/org/apache/jmeter/testelement/property/ObjectProperty.java
   jakarta/jmeter/trunk/src/core/org/apache/jmeter/testelement/property/StringProperty.java
   jakarta/jmeter/trunk/src/core/org/apache/jmeter/testelement/property/TestElementProperty.java
   jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CookieManager.java
   jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPFileArg.java
   jakarta/jmeter/trunk/xdocs/changes.xml