Rename JvmDetector into GenericsBugDetector
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 07231ca..cf867a5 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -7,6 +7,9 @@
</properties>
<body>
<release version="1.8-SNAPSHOT" date="in Mercurial" description="Performance improvement">
+ <action dev="py4fun" type="update">
+ Rename JvmDetector into GenericsBugDetector (2010-08-31)
+ </action>
<action dev="py4fun" type="fix" issue="80" due-to="SebastienRainville">
Fix: Timestamp is not parsed properly when milliseconds start with 0 (2010-08-24)
</action>
diff --git a/src/test/java/org/yaml/snakeyaml/generics/BirdTest.java b/src/test/java/org/yaml/snakeyaml/generics/BirdTest.java
index 4eada65..373fc32 100644
--- a/src/test/java/org/yaml/snakeyaml/generics/BirdTest.java
+++ b/src/test/java/org/yaml/snakeyaml/generics/BirdTest.java
@@ -41,7 +41,7 @@
Bird parsed;
String javaVendor = System.getProperty("java.vm.name");
JavaBeanLoader<Bird> loader = new JavaBeanLoader<Bird>(Bird.class);
- if (JvmDetector.isProperIntrospection()) {
+ if (GenericsBugDetector.isProperIntrospection()) {
// no global tags
System.out.println("java.vm.name: " + javaVendor);
assertEquals("no global tags must be emitted.", "home: {height: 3}\nname: Eagle\n",
diff --git a/src/test/java/org/yaml/snakeyaml/generics/GenericArrayTypeTest.java b/src/test/java/org/yaml/snakeyaml/generics/GenericArrayTypeTest.java
index 2b99d16..39a5489 100644
--- a/src/test/java/org/yaml/snakeyaml/generics/GenericArrayTypeTest.java
+++ b/src/test/java/org/yaml/snakeyaml/generics/GenericArrayTypeTest.java
@@ -67,7 +67,7 @@
String etalon = "!!org.yaml.snakeyaml.generics.GenericArrayTypeTest$GenericArray\n"
+ "home: [1, 2, 3]\n" + "name: Array3\n";
assertEquals(etalon, doc);
- if (JvmDetector.isProperIntrospection()) {
+ if (GenericsBugDetector.isProperIntrospection()) {
GenericArray parsed = (GenericArray) yaml.load(doc);
assertEquals("Array3", parsed.getName());
assertEquals(3, parsed.getHome().length);
@@ -115,7 +115,7 @@
assertEquals(Util.getLocalResource("javabeans/genericArray-1.yaml"), doc);
//
JavaBeanLoader<ArrayBean> beanLoader = new JavaBeanLoader<ArrayBean>(ArrayBean.class);
- if (JvmDetector.isProperIntrospection()) {
+ if (GenericsBugDetector.isProperIntrospection()) {
ArrayBean loaded = beanLoader.load(doc);
assertEquals("ID556677", loaded.getId());
assertEquals("Array3", loaded.getGa().getName());
diff --git a/src/test/java/org/yaml/snakeyaml/generics/JvmDetector.java b/src/test/java/org/yaml/snakeyaml/generics/GenericsBugDetector.java
similarity index 96%
rename from src/test/java/org/yaml/snakeyaml/generics/JvmDetector.java
rename to src/test/java/org/yaml/snakeyaml/generics/GenericsBugDetector.java
index a7ef7eb..74eed99 100644
--- a/src/test/java/org/yaml/snakeyaml/generics/JvmDetector.java
+++ b/src/test/java/org/yaml/snakeyaml/generics/GenericsBugDetector.java
@@ -23,8 +23,7 @@
/**
* @see http://bugs.sun.com/view_bug.do?bug_id=6528714
*/
-// TODO rename the class
-public class JvmDetector {
+public class GenericsBugDetector {
/**
* Check whether the proper class Nest for Bird's property 'home' is
* recognized.
diff --git a/src/test/java/org/yaml/snakeyaml/recursive/generics/HumanGenericsTest.java b/src/test/java/org/yaml/snakeyaml/recursive/generics/HumanGenericsTest.java
index b7f9b35..0bb11d5 100644
--- a/src/test/java/org/yaml/snakeyaml/recursive/generics/HumanGenericsTest.java
+++ b/src/test/java/org/yaml/snakeyaml/recursive/generics/HumanGenericsTest.java
@@ -36,14 +36,14 @@
import org.yaml.snakeyaml.Util;
import org.yaml.snakeyaml.Yaml;
import org.yaml.snakeyaml.constructor.Constructor;
-import org.yaml.snakeyaml.generics.JvmDetector;
+import org.yaml.snakeyaml.generics.GenericsBugDetector;
import org.yaml.snakeyaml.nodes.Tag;
import org.yaml.snakeyaml.representer.Representer;
public class HumanGenericsTest extends TestCase {
public void testNoChildren() throws IOException, IntrospectionException {
- if (!JvmDetector.isProperIntrospection()) {
+ if (!GenericsBugDetector.isProperIntrospection()) {
return;
}
HumanGen father = new HumanGen();
@@ -77,7 +77,7 @@
* @throws IntrospectionException
*/
public void testNoChildren2() throws IOException, IntrospectionException {
- if (!JvmDetector.isProperIntrospection()) {
+ if (!GenericsBugDetector.isProperIntrospection()) {
return;
}
HumanGen father = new HumanGen();
@@ -109,7 +109,7 @@
}
public void testChildren() throws IOException, IntrospectionException {
- if (!JvmDetector.isProperIntrospection()) {
+ if (!GenericsBugDetector.isProperIntrospection()) {
return;
}
HumanGen father = new HumanGen();
@@ -182,7 +182,7 @@
}
public void testChildren2() throws IOException, IntrospectionException {
- if (!JvmDetector.isProperIntrospection()) {
+ if (!GenericsBugDetector.isProperIntrospection()) {
return;
}
HumanGen2 father = new HumanGen2();
@@ -251,7 +251,7 @@
}
public void testChildren3() throws IOException, IntrospectionException {
- if (!JvmDetector.isProperIntrospection()) {
+ if (!GenericsBugDetector.isProperIntrospection()) {
return;
}
HumanGen3 father = new HumanGen3();
@@ -330,7 +330,7 @@
*/
@SuppressWarnings("unchecked")
public void testChildrenSetAsRoot() throws IOException, IntrospectionException {
- if (!JvmDetector.isProperIntrospection()) {
+ if (!GenericsBugDetector.isProperIntrospection()) {
return;
}
String etalon = Util.getLocalResource("recursive/generics/with-children-as-set.yaml");
@@ -368,7 +368,7 @@
*/
@SuppressWarnings("unchecked")
public void testChildrenMapAsRoot() throws IOException, IntrospectionException {
- if (!JvmDetector.isProperIntrospection()) {
+ if (!GenericsBugDetector.isProperIntrospection()) {
return;
}
String etalon = Util.getLocalResource("recursive/generics/with-children-as-map.yaml");
@@ -402,7 +402,7 @@
*/
@SuppressWarnings("unchecked")
public void testChildrenListRoot() throws IOException, IntrospectionException {
- if (!JvmDetector.isProperIntrospection()) {
+ if (!GenericsBugDetector.isProperIntrospection()) {
return;
}
HumanGen3 father = new HumanGen3();
@@ -475,7 +475,7 @@
}
public void testBeanRing() throws IOException, IntrospectionException {
- if (!JvmDetector.isProperIntrospection()) {
+ if (!GenericsBugDetector.isProperIntrospection()) {
return;
}
HumanGen man1 = new HumanGen();