@@ -255,19 +255,19 @@ class MessageBodyReaderRead extends Method {
255255 }
256256}
257257
258- /** An `@Produces` annotation that describes which MIME types can be produced by this resource. */
258+ /** An `@Produces` annotation that describes which content types can be produced by this resource. */
259259class JaxRSProducesAnnotation extends JaxRSAnnotation {
260260 JaxRSProducesAnnotation ( ) { getType ( ) .hasQualifiedName ( "javax.ws.rs" , "Produces" ) }
261261
262262 /**
263- * Gets a declared MIME type that can be produced by this resource.
263+ * Gets a declared content type that can be produced by this resource.
264264 */
265- string getADeclaredMimeType ( ) {
265+ string getADeclaredContentType ( ) {
266266 result = getAValue ( ) .( CompileTimeConstantExpr ) .getStringValue ( )
267267 or
268268 exists ( Field jaxMediaType |
269269 // Accesses to static fields on `MediaType` class do not have constant strings in the database
270- // so convert the field name to a mime type string
270+ // so convert the field name to a content type string
271271 jaxMediaType .getDeclaringType ( ) .hasQualifiedName ( "javax.ws.rs.core" , "MediaType" ) and
272272 jaxMediaType .getAnAccess ( ) = getAValue ( ) and
273273 // e.g. MediaType.TEXT_PLAIN => text/plain
@@ -276,7 +276,7 @@ class JaxRSProducesAnnotation extends JaxRSAnnotation {
276276 }
277277}
278278
279- /** An `@Consumes` annotation that describes MIME types can be consumed by this resource. */
279+ /** An `@Consumes` annotation that describes content types can be consumed by this resource. */
280280class JaxRSConsumesAnnotation extends JaxRSAnnotation {
281281 JaxRSConsumesAnnotation ( ) { getType ( ) .hasQualifiedName ( "javax.ws.rs" , "Consumes" ) }
282282}
0 commit comments