Better / more verbose toString
This commit is contained in:
		
							parent
							
								
									b0f8bec1cb
								
							
						
					
					
						commit
						70d403f0b6
					
				| @ -515,7 +515,10 @@ public class DNSMessage { | ||||
| 
 | ||||
|     public String toString() { | ||||
|         return "-- DNSMessage " + id + " --\n" + | ||||
|                Arrays.toString(answers); | ||||
|                "Q" + Arrays.toString(questions) + | ||||
|                "NS" + Arrays.toString(nameserverRecords) + | ||||
|                "A" + Arrays.toString(answers) + | ||||
|                "ARR" + Arrays.toString(additionalResourceRecords); | ||||
|     } | ||||
| 
 | ||||
| } | ||||
|  | ||||
| @ -134,4 +134,9 @@ public class Question { | ||||
|         byte o[] = ((Question)other).toByteArray(); | ||||
|         return Arrays.equals(t, o); | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return "Question/" + clazz + "/" + type + ": " + name; | ||||
|     } | ||||
| } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Rene Treffer
						Rene Treffer