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" + "\n" - + "\n" + + " \n" + " Correctness\n" + " C\n" + "
Probable bug - an apparent coding mistake\n" @@ -222,6 +222,41 @@ public class MessagesXmlData { + "" + " ]]>" + "
" - + " " + + " " + + " " + + " An increment to a volatile field isn't atomic" + + " Increment of volatile field {2} in {1}" + + "
" + + " This code increments a volatile field. Increments of volatile fields aren't" + + " atomic. If more than one thread is incrementing the field at the same time," + + " increments could be lost." + + "

" + + " ]]>" + + "
" + + "
" + + " " + + " Method invokes inefficient Number constructor; use static valueOf instead" + + " {1} invokes inefficient {2} constructor; use {3} instead" + + "
" + + " " + + " Using 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." + + "

" + + " ]]>" + + "
" + + "
" + "
"; }