don't display version if null
This commit is contained in:
		
							parent
							
								
									954e0d65dd
								
							
						
					
					
						commit
						a7d68d5c59
					
				| @ -70,13 +70,14 @@ public class Main { | |||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		for (int i = packets.size(); i-- > 0; ) { | 		for (int i = packets.size(); i-- > 0; ) { | ||||||
|  | 			SearchedPackage searchedPacket = packets.get(i); | ||||||
| 			System.out.printf("%s - %s/%s/%s %s%n\t%s%n", | 			System.out.printf("%s - %s/%s/%s %s%n\t%s%n", | ||||||
| 							  i, | 							  i, | ||||||
| 							  packets.get(i).getDistribution(), | 							  searchedPacket.getDistribution(), | ||||||
| 							  packets.get(i).getRepo(), | 							  searchedPacket.getRepo(), | ||||||
| 							  packets.get(i).getName(), | 							  searchedPacket.getName(), | ||||||
| 							  packets.get(i).getVersion(), | 							  searchedPacket.getVersion()==null?"":searchedPacket.getVersion(), | ||||||
| 							  packets.get(i).getDescription()); | 							  searchedPacket.getDescription()); | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user