@ -637,6 +637,9 @@ public class MimeType implements Comparable<MimeType>, Serializable {
else if ( mimeType2 . isWildcardType ( ) & & ! mimeType1 . isWildcardType ( ) ) { // audio/* > */*
else if ( mimeType2 . isWildcardType ( ) & & ! mimeType1 . isWildcardType ( ) ) { // audio/* > */*
return - 1 ;
return - 1 ;
}
}
else if ( ! mimeType1 . getType ( ) . equals ( mimeType2 . getType ( ) ) ) { // audio/basic == text/html
return 0 ;
}
else { // mediaType1.getType().equals(mediaType2.getType())
else { // mediaType1.getType().equals(mediaType2.getType())
if ( mimeType1 . isWildcardSubtype ( ) & & ! mimeType2 . isWildcardSubtype ( ) ) { // audio/* < audio/basic
if ( mimeType1 . isWildcardSubtype ( ) & & ! mimeType2 . isWildcardSubtype ( ) ) { // audio/* < audio/basic
return 1 ;
return 1 ;
@ -644,6 +647,9 @@ public class MimeType implements Comparable<MimeType>, Serializable {
else if ( mimeType2 . isWildcardSubtype ( ) & & ! mimeType1 . isWildcardSubtype ( ) ) { // audio/basic > audio/*
else if ( mimeType2 . isWildcardSubtype ( ) & & ! mimeType1 . isWildcardSubtype ( ) ) { // audio/basic > audio/*
return - 1 ;
return - 1 ;
}
}
else if ( ! mimeType1 . getSubtype ( ) . equals ( mimeType2 . getSubtype ( ) ) ) { // audio/basic == audio/wave
return 0 ;
}
else { // mediaType2.getSubtype().equals(mediaType2.getSubtype())
else { // mediaType2.getSubtype().equals(mediaType2.getSubtype())
return compareParameters ( mimeType1 , mimeType2 ) ;
return compareParameters ( mimeType1 , mimeType2 ) ;
}
}