X-Git-Url: http://jaekl.net/gitweb/?p=cfb.git;a=blobdiff_plain;f=test%2Fnet%2Fjaekl%2Fcfb%2Fxml%2FMessagesXmlData.java;h=94e3f09ff72454fd188af460fc254f56e2cf82a1;hp=5b81dcadcef7bc483542e5a26c0f336622500442;hb=e8190c8189a5270ada70aaa478409db6dbf1efae;hpb=6032315cf7e150bcda88c9d6e6b35fc244217d54
diff --git a/test/net/jaekl/cfb/xml/MessagesXmlData.java b/test/net/jaekl/cfb/xml/MessagesXmlData.java
index 5b81dca..94e3f09 100644
--- a/test/net/jaekl/cfb/xml/MessagesXmlData.java
+++ b/test/net/jaekl/cfb/xml/MessagesXmlData.java
@@ -5,7 +5,7 @@ public class MessagesXmlData {
"\n"
+ "
new Integer(int)
is guaranteed to always result in a new object whereas"
+ + " Integer.valueOf(int)
allows caching of values to be done by the compiler, class library, or JVM."
+ + " Using of cached values avoids object allocation and the code will be faster."
+ + " "
+ + " "
+ + " Values between -128 and 127 are guaranteed to have corresponding cached instances"
+ + " and using valueOf
is approximately 3.5 times faster than using constructor."
+ + " For values outside the constant range the performance of both styles is the same."
+ + "
"
+ + " Unless the class must be compatible with JVMs predating Java 1.5,"
+ + " use either autoboxing or the valueOf()
method when creating instances of"
+ + " Long
, Integer
, Short
, Character
, and Byte
."
+ + "