提交 62b29093 编写于 作者: S ShadelessFox

#11116 Fix typos


Former-commit-id: f91b360e
上级 93d7776e
......@@ -163,7 +163,7 @@ public class PostgreGeometryValueHandler extends JDBCAbstractValueHandler {
final Class<?> geometryClass = BeanUtils.findAncestorClass(geometry.getClass(), PostgreConstants.POSTGIS_GEOMETRY_CLASS);
if (geometryClass == null) {
throw new DBCException("Cannot find geometry class " + PostgreConstants.POSTGIS_GEOMETRY_CLASS + " from " + geometry.getClass());
throw new DBCException("Cannot obtain geometry class " + PostgreConstants.POSTGIS_GEOMETRY_CLASS + " from " + geometry.getClass());
}
// Use explicit cast because we want to fail if something went wrong
......
......@@ -286,9 +286,9 @@ public class BeanUtilsTest {
@Test
public void testFindAncestorClass() {
Assert.assertEquals(Object.class, BeanUtils.findAncestorClass(Object.class, "java.lang.Object"));
Assert.assertEquals(Object.class, BeanUtils.findAncestorClass(Integer.class, "java.lang.Object"));
Assert.assertEquals(Number.class, BeanUtils.findAncestorClass(Integer.class, "java.lang.Number"));
Assert.assertEquals(Object.class, BeanUtils.findAncestorClass(Object.class, Object.class.getName()));
Assert.assertEquals(Object.class, BeanUtils.findAncestorClass(Integer.class, Object.class.getName()));
Assert.assertEquals(Number.class, BeanUtils.findAncestorClass(Integer.class, Number.class.getName()));
Assert.assertNull(BeanUtils.findAncestorClass(String.class, Integer.class.getName()));
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册