@@ -61,39 +61,39 @@ public class GenericConversionServiceTests {
6161 public void canConvert () {
6262 assertFalse (conversionService .canConvert (String .class , Integer .class ));
6363 conversionService .addConverterFactory (new StringToNumberConverterFactory ());
64- assertTrue (conversionService .canConvert (String .class , Integer .class ));
64+ assertTrue (conversionService .canConvert (String .class , Integer .class ));
6565 }
66-
66+
6767 @ Test
6868 public void canConvertAssignable () {
6969 assertTrue (conversionService .canConvert (String .class , String .class ));
7070 assertTrue (conversionService .canConvert (Integer .class , Number .class ));
7171 assertTrue (conversionService .canConvert (boolean .class , boolean .class ));
7272 assertTrue (conversionService .canConvert (boolean .class , Boolean .class ));
7373 }
74-
74+
7575 @ Test
7676 public void canConvertIllegalArgumentNullTargetType () {
7777 try {
7878 assertFalse (conversionService .canConvert (String .class , null ));
7979 fail ("Should have failed" );
8080 } catch (IllegalArgumentException e ) {
81-
81+
8282 }
8383 try {
8484 assertFalse (conversionService .canConvert (TypeDescriptor .valueOf (String .class ), null ));
8585 fail ("Should have failed" );
8686 } catch (IllegalArgumentException e ) {
87-
87+
8888 }
8989 }
90-
90+
9191 @ Test
9292 public void canConvertNullSourceType () {
9393 assertTrue (conversionService .canConvert (null , Integer .class ));
9494 assertTrue (conversionService .canConvert (null , TypeDescriptor .valueOf (Integer .class )));
9595 }
96-
96+
9797 @ Test
9898 public void convert () {
9999 conversionService .addConverterFactory (new StringToNumberConverterFactory ());
@@ -208,7 +208,7 @@ public Integer convert(CharSequence source) {
208208 }
209209
210210 // SPR-8718
211-
211+
212212 @ Test (expected =ConverterNotFoundException .class )
213213 public void convertSuperTarget () {
214214 conversionService .addConverter (new ColorConverter ());
@@ -235,11 +235,11 @@ public void convertObjectToPrimitive() {
235235 public void convertObjectToPrimitiveViaConverterFactory () {
236236 assertFalse (conversionService .canConvert (String .class , int .class ));
237237 conversionService .addConverterFactory (new StringToNumberConverterFactory ());
238- assertTrue (conversionService .canConvert (String .class , int .class ));
238+ assertTrue (conversionService .canConvert (String .class , int .class ));
239239 Integer three = conversionService .convert ("3" , int .class );
240240 assertEquals (3 , three .intValue ());
241241 }
242-
242+
243243 @ Test
244244 public void genericConverterDelegatingBackToConversionServiceConverterNotFound () {
245245 conversionService .addConverter (new ObjectToArrayConverter (conversionService ));
@@ -398,7 +398,7 @@ public void testPerformance1() {
398398 watch .stop ();
399399 System .out .println (watch .prettyPrint ());
400400 }
401-
401+
402402 @ Test
403403 public void testPerformance2 () throws Exception {
404404 GenericConversionService conversionService = new DefaultConversionService ();
@@ -420,7 +420,7 @@ public void testPerformance2() throws Exception {
420420 target .add (Integer .valueOf (element ));
421421 }
422422 }
423- watch .stop ();
423+ watch .stop ();
424424 System .out .println (watch .prettyPrint ());
425425 }
426426
@@ -435,7 +435,7 @@ public void testPerformance3() throws Exception {
435435 source .put ("1" , "1" );
436436 source .put ("2" , "2" );
437437 source .put ("3" , "3" );
438- TypeDescriptor td = new TypeDescriptor (getClass ().getField ("map" ));
438+ TypeDescriptor td = new TypeDescriptor (getClass ().getField ("map" ));
439439 for (int i = 0 ; i < 1000000 ; i ++) {
440440 conversionService .convert (source , TypeDescriptor .forObject (source ), td );
441441 }
@@ -447,10 +447,10 @@ public void testPerformance3() throws Exception {
447447 target .put (entry .getKey (), Integer .valueOf (entry .getValue ()));
448448 }
449449 }
450- watch .stop ();
450+ watch .stop ();
451451 System .out .println (watch .prettyPrint ());
452452 }
453-
453+
454454 public static Map <String , Integer > map ;
455455
456456 @ Test
@@ -554,19 +554,19 @@ public void stringToArrayCanConvert() {
554554 conversionService .addConverterFactory (new StringToNumberConverterFactory ());
555555 assertTrue (conversionService .canConvert (String .class , Integer [].class ));
556556 }
557-
557+
558558 @ Test
559559 public void stringToCollectionCanConvert () throws Exception {
560560 conversionService .addConverter (new StringToCollectionConverter (conversionService ));
561561 assertTrue (conversionService .canConvert (String .class , Collection .class ));
562562 TypeDescriptor targetType = new TypeDescriptor (getClass ().getField ("stringToCollection" ));
563- assertFalse (conversionService .canConvert (TypeDescriptor .valueOf (String .class ), targetType ));
563+ assertFalse (conversionService .canConvert (TypeDescriptor .valueOf (String .class ), targetType ));
564564 conversionService .addConverterFactory (new StringToNumberConverterFactory ());
565- assertTrue (conversionService .canConvert (TypeDescriptor .valueOf (String .class ), targetType ));
565+ assertTrue (conversionService .canConvert (TypeDescriptor .valueOf (String .class ), targetType ));
566566 }
567-
567+
568568 public Collection <Integer > stringToCollection ;
569-
569+
570570 @ Test
571571 public void testConvertiblePairsInSet () throws Exception {
572572 Set <GenericConverter .ConvertiblePair > set = new HashSet <GenericConverter .ConvertiblePair >();
0 commit comments