mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-04 00:02:37 +01:00 
			
		
		
		
	fixBugs finding
fm.equals(format) breaks equals contract Signed-off-by: Daan Hoogland <daan@onecht.net>
This commit is contained in:
		
							parent
							
								
									13e0f293ed
								
							
						
					
					
						commit
						cecb216caa
					
				@ -36,7 +36,7 @@ public class ImageFormatHelper {
 | 
			
		||||
 | 
			
		||||
    public static ImageFormat getFormat(String format) {
 | 
			
		||||
        for (ImageFormat fm : formats) {
 | 
			
		||||
            if (fm.equals(format)) {
 | 
			
		||||
            if (fm.toString().equals(format)) {
 | 
			
		||||
                return fm;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user