File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed 
spring-web/src/main/java/org/springframework/web/client Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 4444import  org .springframework .util .Assert ;
4545import  org .springframework .util .concurrent .ListenableFuture ;
4646import  org .springframework .util .concurrent .ListenableFutureAdapter ;
47- import  org .springframework .web .util .AbstractUriTemplateHandler ;
4847import  org .springframework .web .util .DefaultUriBuilderFactory ;
4948import  org .springframework .web .util .UriTemplateHandler ;
5049
@@ -162,13 +161,15 @@ public ResponseErrorHandler getErrorHandler() {
162161	 * @param defaultUriVariables the default URI variable values 
163162	 * @since 4.3 
164163	 */ 
164+ 	@ SuppressWarnings ("deprecation" )
165165	public  void  setDefaultUriVariables (Map <String , ?> defaultUriVariables ) {
166166		UriTemplateHandler  handler  = this .syncTemplate .getUriTemplateHandler ();
167167		if  (handler  instanceof  DefaultUriBuilderFactory ) {
168168			((DefaultUriBuilderFactory ) handler ).setDefaultUriVariables (defaultUriVariables );
169169		}
170- 		else  if  (handler  instanceof  AbstractUriTemplateHandler ) {
171- 			((AbstractUriTemplateHandler ) handler ).setDefaultUriVariables (defaultUriVariables );
170+ 		else  if  (handler  instanceof  org .springframework .web .util .AbstractUriTemplateHandler ) {
171+ 			((org .springframework .web .util .AbstractUriTemplateHandler ) handler )
172+ 					.setDefaultUriVariables (defaultUriVariables );
172173		}
173174		else  {
174175			throw  new  IllegalArgumentException (
Original file line number Diff line number Diff line change 5252import  org .springframework .http .converter .xml .SourceHttpMessageConverter ;
5353import  org .springframework .util .Assert ;
5454import  org .springframework .util .ClassUtils ;
55- import  org .springframework .web .util .AbstractUriTemplateHandler ;
5655import  org .springframework .web .util .DefaultUriBuilderFactory ;
5756import  org .springframework .web .util .UriTemplateHandler ;
5857
@@ -263,12 +262,14 @@ public ResponseErrorHandler getErrorHandler() {
263262	 * @param uriVars the default URI variable values 
264263	 * @since 4.3 
265264	 */ 
265+ 	@ SuppressWarnings ("deprecation" )
266266	public  void  setDefaultUriVariables (Map <String , ?> uriVars ) {
267267		if  (this .uriTemplateHandler  instanceof  DefaultUriBuilderFactory ) {
268268			((DefaultUriBuilderFactory ) this .uriTemplateHandler ).setDefaultUriVariables (uriVars );
269269		}
270- 		else  if  (this .uriTemplateHandler  instanceof  AbstractUriTemplateHandler ) {
271- 			((AbstractUriTemplateHandler ) this .uriTemplateHandler ).setDefaultUriVariables (uriVars );
270+ 		else  if  (this .uriTemplateHandler  instanceof  org .springframework .web .util .AbstractUriTemplateHandler ) {
271+ 			((org .springframework .web .util .AbstractUriTemplateHandler ) this .uriTemplateHandler )
272+ 					.setDefaultUriVariables (uriVars );
272273		}
273274		else  {
274275			throw  new  IllegalArgumentException (
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments