@@ -557,17 +557,13 @@ InvalidSessionStrategy getInvalidSessionStrategy() {
557
557
if (this .invalidSessionStrategy != null ) {
558
558
return this .invalidSessionStrategy ;
559
559
}
560
- if (this .invalidSessionUrl != null ) {
561
- this .invalidSessionStrategy = new SimpleRedirectInvalidSessionStrategy (
562
- this .invalidSessionUrl );
563
- }
560
+
564
561
if (this .invalidSessionUrl == null ) {
565
562
return null ;
566
563
}
567
- if ( this . invalidSessionStrategy == null ) {
568
- this .invalidSessionStrategy = new SimpleRedirectInvalidSessionStrategy (
564
+
565
+ this .invalidSessionStrategy = new SimpleRedirectInvalidSessionStrategy (
569
566
this .invalidSessionUrl );
570
- }
571
567
return this .invalidSessionStrategy ;
572
568
}
573
569
@@ -580,10 +576,8 @@ SessionInformationExpiredStrategy getExpiredSessionStrategy() {
580
576
return null ;
581
577
}
582
578
583
- if (this .expiredSessionStrategy == null ) {
584
- this .expiredSessionStrategy = new SimpleRedirectSessionInformationExpiredStrategy (
585
- this .expiredUrl );
586
- }
579
+ this .expiredSessionStrategy = new SimpleRedirectSessionInformationExpiredStrategy (
580
+ this .expiredUrl );
587
581
return this .expiredSessionStrategy ;
588
582
}
589
583
@@ -596,10 +590,8 @@ AuthenticationFailureHandler getSessionAuthenticationFailureHandler() {
596
590
return null ;
597
591
}
598
592
599
- if (this .sessionAuthenticationFailureHandler == null ) {
600
- this .sessionAuthenticationFailureHandler = new SimpleUrlAuthenticationFailureHandler (
601
- this .sessionAuthenticationErrorUrl );
602
- }
593
+ this .sessionAuthenticationFailureHandler = new SimpleUrlAuthenticationFailureHandler (
594
+ this .sessionAuthenticationErrorUrl );
603
595
return this .sessionAuthenticationFailureHandler ;
604
596
}
605
597
0 commit comments