parent
							
								
									8f3b7484e2
								
							
						
					
					
						commit
						7ccd4ce886
					
				| 
						 | 
					@ -220,7 +220,7 @@ final class UrlParser {
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	private void setState(State newState) {
 | 
						private void setState(State newState) {
 | 
				
			||||||
		if (logger.isDebugEnabled()) {
 | 
							if (logger.isTraceEnabled()) {
 | 
				
			||||||
			String c;
 | 
								String c;
 | 
				
			||||||
			if (this.pointer < this.input.length()) {
 | 
								if (this.pointer < this.input.length()) {
 | 
				
			||||||
				c = Character.toString(this.input.charAt(this.pointer));
 | 
									c = Character.toString(this.input.charAt(this.pointer));
 | 
				
			||||||
| 
						 | 
					@ -228,7 +228,7 @@ final class UrlParser {
 | 
				
			||||||
			else {
 | 
								else {
 | 
				
			||||||
				c = "EOF";
 | 
									c = "EOF";
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			logger.debug("Changing state from " + this.state + " to " + newState + " (cur: " + c + " prev: " + this.previousState + ")");
 | 
								logger.trace("Changing state from " + this.state + " to " + newState + " (cur: " + c + " prev: " + this.previousState + ")");
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		// EXTRA: we keep the previous state, to ensure that the parser can escape from malformed URI templates
 | 
							// EXTRA: we keep the previous state, to ensure that the parser can escape from malformed URI templates
 | 
				
			||||||
		this.previousState = this.state;
 | 
							this.previousState = this.state;
 | 
				
			||||||
| 
						 | 
					@ -2847,7 +2847,6 @@ final class UrlParser {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		@Override
 | 
							@Override
 | 
				
			||||||
		public void append(String segment) {
 | 
							public void append(String segment) {
 | 
				
			||||||
			logger.debug("Adding \"" + segment + "\"");
 | 
					 | 
				
			||||||
			this.segments.add(new PathSegment(segment));
 | 
								this.segments.add(new PathSegment(segment));
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue