-
Enhancement
-
Resolution: Won't Fix
-
P4
-
None
-
8
-
generic
-
generic
A DESCRIPTION OF THE PROBLEM :
MimeType does not implement equals/hashcode. Hence, it is not possible to compare two objects with identical mime type string. Is there any good reason to fall back on Object.equals?
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
@Test
public void test() throws MimeTypeParseException {
assertEquals(new MimeType("application/text"), new MimeType("application/text"));
}
ACTUAL -
false
MimeType does not implement equals/hashcode. Hence, it is not possible to compare two objects with identical mime type string. Is there any good reason to fall back on Object.equals?
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
@Test
public void test() throws MimeTypeParseException {
assertEquals(new MimeType("application/text"), new MimeType("application/text"));
}
ACTUAL -
false