[AMQ-8493] Minor deprecation cleanups in activemq-client

This commit is contained in:
Matt Pavlovich 2022-02-16 12:58:29 -06:00
parent 6681cde88c
commit 00925c1eff
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 major = 0;
int minor = 0; int minor = 0;
try { try {
Package p = Package.getPackage("org.apache.activemq"); Package p = ActiveMQConnectionMetaData.class.getPackage();
if (p != null) { if (p != null) {
version = p.getImplementationVersion(); version = p.getImplementationVersion();
if (version != null) { 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 storeContent();
public abstract void storeContentAndClear(); 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 // useful to reduce the memory footprint of a persisted message
public void clearUnMarshalledState() throws JMSException { public void clearUnMarshalledState() throws JMSException {
properties = null; properties = null;