Skip to content

Commit

Permalink
add missing javadoc
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
  • Loading branch information
lukasj committed Oct 29, 2021
1 parent 4d84d6b commit bece214
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
1 change: 1 addition & 0 deletions api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ Use is subject to <a href="{@docRoot}/doc-files/speclicense.html" target="_top">
<docfilessubdirs>true</docfilessubdirs>
<detectJavaApiLink>false</detectJavaApiLink>
<release>11</release>
<quiet>true</quiet>
</configuration>
</plugin>
<plugin>
Expand Down
28 changes: 21 additions & 7 deletions api/src/main/java/jakarta/activation/MimeTypeEntry.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,40 @@

package jakarta.activation;

import java.lang.*;

/**
* Represents mapping between the file extension and the MIME type string.
*/
public class MimeTypeEntry {
private String type;
private String extension;

/**
* Create new {@code MimeTypeEntry}
*
* @param mime_type the MIME type string
* @param file_ext the file extension
*/
public MimeTypeEntry(String mime_type, String file_ext) {
type = mime_type;
extension = file_ext;
type = mime_type;
extension = file_ext;
}

/**
* @return the MIME type string
*/
public String getMIMEType() {
return type;
return type;
}

/**
* @return the file extension
*/
public String getFileExtension() {
return extension;
return extension;
}

@Override
public String toString() {
return "MIMETypeEntry: " + type + ", " + extension;
return "MIMETypeEntry: " + type + ", " + extension;
}
}

0 comments on commit bece214

Please sign in to comment.