Skip to content
This repository has been archived by the owner on Jul 2, 2023. It is now read-only.

Commit

Permalink
Use the deprecated MimeType.getCharSet() to maintain Grails 3.1.x com…
Browse files Browse the repository at this point in the history
…patibility. (#120)
  • Loading branch information
budjb authored Sep 29, 2017
1 parent 6c414fd commit a949843
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ gormVersion=6.0.12.RELEASE

org.gradle.daemon=true

version=3.4.0
version=3.4.1
group=org.grails.plugins

sourceCompatibility=1.8
Expand Down
4 changes: 4 additions & 0 deletions rabbitmq-native-documentation/src/docs/changelog.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

=== 3.4.x

==== Version 3.4.1
* Change from using Spring's `MimeType.getCharset()` to `MimeType.getCharSet()`. The latter is deprecated but
using it allows Grails 3.1.x to function correctly.

==== Version 3.4.0
* Remove support for legacy connection configuration (`rabbitmq.connection`).
* Update RabbitMQ Client library to 4.2.0.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,6 @@ class ByteToObjectInput {
* @return
*/
Charset getCharset() {
return mimeType?.getCharset() ?: UTF_8
return mimeType?.getCharSet() ?: UTF_8
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@ class ObjectToByteInput {
* @param contentType
*/
ObjectToByteInput(Object object, MimeType contentType) {
this(object, contentType?.getCharset() ?: UTF_8)
this(object, contentType?.getCharSet() ?: UTF_8)
}
}

0 comments on commit a949843

Please sign in to comment.