Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress current JdkObsolete violations #2193

Merged
merged 1 commit into from
Nov 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import com.sun.messaging.jmq.util.timer.TimerEventHandler;
import com.sun.messaging.bridge.service.jms.tx.GlobalXid;

@SuppressWarnings("JdkObsolete")
class TransactionReaper implements TimerEventHandler {
private TxLog _txlog = null;
private Logger _logger = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
* A Generic binary packet format. This class encapsulates a simple binary packet format. The packet is made up of a
* fixed header, a marshalled properties section, and an opaque payload.
*/
@SuppressWarnings("JdkObsolete")
public class GPacket {

/* The 32 bit flags */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
* Pad out to 32 bit boundry
*
*/
@SuppressWarnings("JdkObsolete")
public class PacketProperties {
public static final short BOOLEAN = 1;
public static final short BYTE = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
*
* Output is sent to stdout but can also be redirected to a file.
*/
@SuppressWarnings("JdkObsolete")
public class DebugPrinter extends MultiColumnPrinter {
private static final long serialVersionUID = 3312334387486018119L;
private Hashtable hashtable = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
* Once data classes are registered, DiagManager.allToString() can be called to generate a formatted string representing
* data in all registered classes.
*/
@SuppressWarnings("JdkObsolete")
public class DiagManager {

// Data types
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@
* </PRE>
*
*/
@SuppressWarnings("JdkObsolete")
public abstract class MultiColumnPrinter implements Serializable {

private static final long serialVersionUID = -8013528725857861640L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.util.Map;
import java.util.Iterator;

@SuppressWarnings("JdkObsolete")
public class SupportUtil {

public static Hashtable<String, Object> getAllStackTracesAsMap() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* This is a First In-First Out set which implements the SortedSet interface.
* @since 1.22
*/
@SuppressWarnings("JdkObsolete")
public class FifoSet<E> extends AbstractSet<E> implements SortedSet<E> {

// linked list entries for the list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
* A class that implements JMS selectors. See section 3.8 of the JMS 1.1 spec.
*
*/
@SuppressWarnings("JdkObsolete")
public class Selector {

private static boolean DEBUG = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
* <p>
* It also provides methods to read bytes from and write bytes to the connection stream.
*/
@SuppressWarnings("JdkObsolete")
public class HttpTunnelConnection implements HttpTunnelDefaults {
private HttpTunnelDriver wire;
private int connId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
* This class provides unreliable packet delivery mechanism on the client side. It also uses a dedicated thread to
* continuously send HTTP pull requests to fetch packets sent by the server.
*/
@SuppressWarnings("JdkObsolete")
public class HttpTunnelClientDriver extends Thread implements HttpTunnelDefaults, HttpTunnelDriver {
private static boolean DEBUG = Boolean.getBoolean("httptunnel.debug");
private boolean stopThread = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
* time consuming task. A dedicated push thread ensures that the threads generating outbound packets don't waste their
* cycles in HTTP I/O.
*/
@SuppressWarnings("JdkObsolete")
public class HttpTunnelPush extends Thread implements HttpTunnelDefaults {
private URL pushUrl = null;
private Vector q = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
* This class provides unreliable packet delivery mechanism on the server side. It also uses a dedicated thread to
* continuously read incoming packets from the servlet over the TCP connection.
*/
@SuppressWarnings("JdkObsolete")
public class HttpTunnelServerDriverImpl extends Link implements HttpTunnelDefaults, HttpTunnelDriver, HttpTunnelServerDriver {
private static boolean DEBUG = Boolean.getBoolean("httptunnel.debug");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import java.util.Vector;

@SuppressWarnings("JdkObsolete")
class Connection {
private Vector pullQ = new Vector();
private int pullPeriod = -1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import java.util.Hashtable;
import java.util.StringTokenizer;

@SuppressWarnings("JdkObsolete")
class HttpUtils {
private HttpUtils() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import jakarta.servlet.ServletConfig;
import jakarta.servlet.ServletContext;

@SuppressWarnings("JdkObsolete")
public class ServerLinkTable implements HttpTunnelDefaults {
private static final int RUNNING = 0;
private static final int SHUTTINGDOWN = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
* the deferred messages are logged.
*/

@SuppressWarnings("JdkObsolete")
public class Logger implements LoggerWrapper {

// Resource bundle to look up logged messages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
* <LI>timeout (for receiving replies)
* </UL>
*/
@SuppressWarnings("JdkObsolete")
public abstract class BrokerAdminConn implements ExceptionListener {

public static final String DEFAULT_ADMIN_USERNAME = "admin";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import java.util.Hashtable;

@SuppressWarnings("JdkObsolete")
public class BrokerAdminManager {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
import com.sun.messaging.jmq.util.admin.DestinationInfo;
import com.sun.messaging.jmq.util.admin.MessageType;

@SuppressWarnings("JdkObsolete")
public class JMSAdminImpl implements JMSAdmin, ExceptionListener {

private static AdminResources ar = Globals.getAdminResources();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
*
* For the ObjStore using JNDI, this object will be directly passed on to create the initialContext.
*/
@SuppressWarnings("JdkObsolete")
public class ObjStoreAttrs extends Hashtable {

// Debug messages on / off.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
* This class should be implemented as a singleton, so that we can guarantee that we do not manage the same ObjStore
* twice within the same application.
*/
@SuppressWarnings("JdkObsolete")
public class ObjStoreManager {

// Debug messages on / off.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
* This is implemented by having a main panel stacking all the different InspectorPanels in CardLayout. Each console
* object that can be inspected will contain information specifying which inspector panel to use to inspect it.
*/
@SuppressWarnings("JdkObsolete")
public class AInspector extends JScrollPane {

private static final long serialVersionUID = 2753311786926025370L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
* trigerred from multiple controls e.g. from the toolbar or from a menu. It helps to centralize control of the task in
* an action so that things like enabling/disabling is made easy.
*/
@SuppressWarnings("JdkObsolete")
public class ActionManager {
/*
* Bit flags to identify a particular action. Bit flags are needed because in some cases we need to specify more than
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import com.sun.messaging.jmq.admin.bkrutil.BrokerAdmin;
import com.sun.messaging.jmq.admin.bkrutil.BrokerAdminException;

@SuppressWarnings("JdkObsolete")
public class ConsoleBrokerAdminManager {
private String fileName = "brokerlist.properties";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
* (update) an existing object store.
*
*/
@SuppressWarnings("JdkObsolete")
public class ObjStoreConFactoryDialog extends AdminDialog {

private static final long serialVersionUID = 517513555795379528L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
*
* This class maintains both the value and the set of listeners
*/
@SuppressWarnings("JdkObsolete")
class WatchedProperty {
/**
* value of the property
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
*
* Uses SQL parser in SQLParser.jj
*/
@SuppressWarnings("JdkObsolete")
public class JMSSelector implements java.io.Serializable {
private static final long serialVersionUID = 987679311016714425L;
transient SQLParser parser;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
* <p>
* SQL grammar contributed by [email protected] to the JAVACC web site
*/
@SuppressWarnings("JdkObsolete")
public class SQLParser implements SQLParserConstants {

private static final Logger logger = System.getLogger(SQLParser.class.getName());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
* Currently the broker supports a single protocol running on a single port, however this class could be changed to
* allow additional protocols/ports at a later time
*/
@SuppressWarnings("JdkObsolete")
public class Broker implements GlobalErrorHandler, CommBroker {
public static final String CLUSTER_BROADCASTER_SERVICE_NAME = "com.sun.messaging.jmq.jmsserver.multibroker.ClusterBroadcaster";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
* for 1 connection
*/

@SuppressWarnings("JdkObsolete")
public class MQAuthenticator {

private static boolean DEBUG = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import com.sun.messaging.jmq.jmsserver.resources.BrokerResources;
import com.sun.messaging.jmq.auth.api.server.model.*;

@SuppressWarnings("JdkObsolete")
public class JMQFileAccessControlModel implements AccessControlModel {

public static final String VERSION = "JMQFileAccessControlModel/100";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import com.sun.messaging.jmq.auth.api.server.model.*;
import com.sun.messaging.jmq.util.Password;

@SuppressWarnings("JdkObsolete")
public class LdapUserRepository implements UserRepository {
public static final String TYPE = "ldap";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
* @see ObjMgr
*
*/
@SuppressWarnings("JdkObsolete")
public class CmdRunner implements UserMgrOptions {

private static BrokerResources br = Globals.getBrokerResources();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
*
*/

@SuppressWarnings("JdkObsolete")
public class PasswdDB {

private static boolean DEBUG = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
*/
@Contract
@Singleton
@SuppressWarnings("JdkObsolete")
public interface ClusterBroadcast {

/** MessageBus protocol version */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
/**
* Simple message bus implementation which can be used in non-clustered environments.
*/
@SuppressWarnings("JdkObsolete")
public class NoCluster implements ClusterBroadcast {

private static final Object noOwner = new Object();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import java.util.Vector;
import com.sun.messaging.jmq.jmsserver.data.TransactionAcknowledgement;

@SuppressWarnings("JdkObsolete")
public class RemoteTransactionAckEntry {
TransactionAcknowledgement[] acks = null;
boolean processed = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
/**
* Handler class which deals with handling authentication messages
*/
@SuppressWarnings("JdkObsolete")
public class AuthHandler extends PacketHandler {

// private ConnectionManager connectionList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
/**
* Handler class which deals with adding and removing interests from the RouteTable
*/
@SuppressWarnings("JdkObsolete")
public class ClientIDHandler extends PacketHandler {
private Logger logger = Globals.getLogger();
private static boolean DEBUG = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
/**
* Handler class which deals with adding and removing destination from the broker
*/
@SuppressWarnings("JdkObsolete")
public class DestinationHandler extends PacketHandler {
private Logger logger = Globals.getLogger();
private static boolean DEBUG = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
/**
* handles receiving Flow packet
*/
@SuppressWarnings("JdkObsolete")
public class FlowHandler extends PacketHandler {

private Logger logger = Globals.getLogger();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import com.sun.messaging.jmq.jmsserver.util.BrokerException;
import java.util.*;

@SuppressWarnings("JdkObsolete")
public class FlowPausedHandler extends PacketHandler {
private Logger logger = Globals.getLogger();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
/**
* Handler class which deals with the GenerateUID packet.
*/
@SuppressWarnings("JdkObsolete")
public class GenerateUIDHandler extends PacketHandler {
private Logger logger = Globals.getLogger();
private static boolean DEBUG = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
* Handler class which deals with the GET_LICENSE message GET_LICENSE requests licensing information so the client can
* restrict licensed features.
*/
@SuppressWarnings("JdkObsolete")
public class GetLicenseHandler extends PacketHandler {
// private ConnectionManager connectionList;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
/**
* Handler class which deals with a "goodbye" message which is sent when a client quits talking to the broker
*/
@SuppressWarnings("JdkObsolete")
public class GoodbyeHandler extends PacketHandler {

private static long timeout = Globals.getConfig().getLongProperty(Globals.IMQ + ".goodbye.timeout", 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

import java.util.*;

@SuppressWarnings("JdkObsolete")
final class GoodbyeTask extends TimerTask {
static Logger logger = Globals.getLogger();
static GoodbyeTask runner = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
* determining a connection (e.g. tcp does not need the HELLO message to set up a connection, since each socket
* corresponds to a new connection)
*/
@SuppressWarnings("JdkObsolete")
public class HelloHandler extends PacketHandler {
private ConnectionManager connectionList;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
/**
* Handler class which deals with the INFO_REQUEST message sent by a client after failover.
*/
@SuppressWarnings("JdkObsolete")
public class InfoRequestHandler extends PacketHandler {

private Logger logger = Globals.getLogger();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.sun.messaging.jmq.jmsserver.util.BrokerException;
import com.sun.messaging.jmq.jmsserver.Globals;

@SuppressWarnings("JdkObsolete")
public class PingHandler extends PacketHandler {
private Logger logger = Globals.getLogger();
// private BrokerResources rb = Globals.getBrokerResources();
Expand Down
Loading
Loading