Author: britter
Date: Tue Nov 3 21:18:14 2015
New Revision: 1712420
URL: http://svn.apache.org/viewvc?rev=1712420&view=rev
Log:
Casting value to String is redundant
Modified:
commons/sandbox/beanutils2/trunk/src/test/java/org/apache/commons/beanutils2/PropertyInterpreterTestCase.java
Modified:
commons/sandbox/beanutils2/trunk/src/test/java/org/apache/commons/beanutils2/PropertyInterpreterTestCase.java
URL:
http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/test/java/org/apache/commons/beanutils2/PropertyInterpreterTestCase.java?rev=1712420&r1=1712419&r2=1712420&view=diff
==============================================================================
---
commons/sandbox/beanutils2/trunk/src/test/java/org/apache/commons/beanutils2/PropertyInterpreterTestCase.java
(original)
+++
commons/sandbox/beanutils2/trunk/src/test/java/org/apache/commons/beanutils2/PropertyInterpreterTestCase.java
Tue Nov 3 21:18:14 2015
@@ -100,7 +100,7 @@ public class PropertyInterpreterTestCase
assertNotNull("Got no value", value);
assertTrue("Got a value of the wrong type", (value instanceof String));
- assertTrue("Got an incorrect value", ((String)
value).equals(target.getMappedProperty("First Key")));
+ assertTrue("Got an incorrect value",
value.equals(target.getMappedProperty("First Key")));
}