Skip to content

Commit

Permalink
Merge pull request #9 from HasiniSama/5.3.39-wso2vx
Browse files Browse the repository at this point in the history
Fix build failure errors
  • Loading branch information
sadilchamishka authored Nov 8, 2024
2 parents b6e6cdd + 99b54bb commit f086013
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public List<String> getAllFileExtensions() {
*/
@Nullable
protected MediaType lookupMediaType(String extension) {
return this.mediaTypes.get(extension.toLowerCase(Locale.ROOT);
return this.mediaTypes.get(extension.toLowerCase(Locale.ROOT));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ private MediaType getMediaType(Resource resource) {
if (!CollectionUtils.isEmpty(this.mediaTypes)) {
String ext = StringUtils.getFilenameExtension(filename);
if (ext != null) {
mediaType = this.mediaTypes.get(ext.toLowerCase(Locale.ROOT);
mediaType = this.mediaTypes.get(ext.toLowerCase(Locale.ROOT));
}
}
if (mediaType == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ protected MediaType getMediaType(HttpServletRequest request, Resource resource)
String filename = resource.getFilename();
String ext = StringUtils.getFilenameExtension(filename);
if (ext != null) {
mediaType = this.mediaTypes.get(ext.toLowerCase(Locale.ROOT);
mediaType = this.mediaTypes.get(ext.toLowerCase(Locale.ROOT));
}
if (mediaType == null) {
List<MediaType> mediaTypes = MediaTypeFactory.getMediaTypes(filename);
Expand Down
2 changes: 1 addition & 1 deletion src/docs/asciidoc/testing.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2002,7 +2002,7 @@ test methods within that class are automatically disabled as well.
Expressions can be any of the following:

* <<core.adoc#expressions, Spring Expression Language>> (SpEL) expression. For example:
`@DisabledIf("#{systemProperties['os.name'].toLowerCase(Locale.ROOT).contains('mac')}")`
`@DisabledIf("#{systemProperties['os.name'].toLowerCase().contains('mac')}")`
* Placeholder for a property available in the Spring <<core.adoc#beans-environment, `Environment`>>.
For example: `@DisabledIf("${smoke.tests.disabled}")`
* Text literal. For example: `@DisabledIf("true")`
Expand Down

0 comments on commit f086013

Please sign in to comment.