Merge pull request #770 from mattrpav/AMQ-8493

[AMQ-8493] Minor deprecation cleanups in activemq-client
This commit is contained in:
Christopher L. Shannon 2022-02-18 10:58:52 -05:00 committed by GitHub
commit bed86a078d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 9 deletions

View File

@ -43,7 +43,7 @@ public final class ActiveMQConnectionMetaData implements ConnectionMetaData {
int major = 0;
int minor = 0;
try {
Package p = Package.getPackage("org.apache.activemq");
Package p = ActiveMQConnectionMetaData.class.getPackage();
if (p != null) {
version = p.getImplementationVersion();
if (version != null) {

View File

@ -111,14 +111,6 @@ public abstract class Message extends BaseCommand implements MarshallAware, Mess
public abstract void storeContent();
public abstract void storeContentAndClear();
/**
* @deprecated - This method name is misnamed
* @throws JMSException
*/
public void clearMarshalledState() throws JMSException {
clearUnMarshalledState();
}
// useful to reduce the memory footprint of a persisted message
public void clearUnMarshalledState() throws JMSException {
properties = null;