HeaderValueHolder.toString() exposes underlying list of header values
Issue: SPR-15375
This commit is contained in:
		
							parent
							
								
									5ea4abdb85
								
							
						
					
					
						commit
						15bff8f911
					
				| 
						 | 
				
			
			@ -1,5 +1,5 @@
 | 
			
		|||
/*
 | 
			
		||||
 * Copyright 2002-2016 the original author or authors.
 | 
			
		||||
 * Copyright 2002-2017 the original author or authors.
 | 
			
		||||
 *
 | 
			
		||||
 * Licensed under the Apache License, Version 2.0 (the "License");
 | 
			
		||||
 * you may not use this file except in compliance with the License.
 | 
			
		||||
| 
						 | 
				
			
			@ -72,7 +72,12 @@ class HeaderValueHolder {
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
	public String getStringValue() {
 | 
			
		||||
		return (!this.values.isEmpty() ? this.values.get(0).toString() : null);
 | 
			
		||||
		return (!this.values.isEmpty() ? String.valueOf(this.values.get(0)) : null);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	@Override
 | 
			
		||||
	public String toString() {
 | 
			
		||||
		return this.values.toString();
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,5 +1,5 @@
 | 
			
		|||
/*
 | 
			
		||||
 * Copyright 2002-2016 the original author or authors.
 | 
			
		||||
 * Copyright 2002-2017 the original author or authors.
 | 
			
		||||
 *
 | 
			
		||||
 * Licensed under the Apache License, Version 2.0 (the "License");
 | 
			
		||||
 * you may not use this file except in compliance with the License.
 | 
			
		||||
| 
						 | 
				
			
			@ -72,7 +72,12 @@ class HeaderValueHolder {
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
	public String getStringValue() {
 | 
			
		||||
		return (!this.values.isEmpty() ? this.values.get(0).toString() : null);
 | 
			
		||||
		return (!this.values.isEmpty() ? String.valueOf(this.values.get(0)) : null);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	@Override
 | 
			
		||||
	public String toString() {
 | 
			
		||||
		return this.values.toString();
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue