Commit 8b259a93 authored by Andre Freyssinet's avatar Andre Freyssinet

Fix potential issues with serialization (serialVersionUID).

parent 108c2e27
/*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2009 ScalAgent Distributed Technologies
* Copyright (C) 2009 - 2019 ScalAgent Distributed Technologies
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -45,7 +45,6 @@ import fr.dyade.aaa.common.Debug;
* AMQP servers.
*/
public class AMQPAgent extends Agent {
/**
* serialVersionUID
*/
......
/*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2009 ScalAgent Distributed Technologies
* Copyright (C) 2009 - 2019 ScalAgent Distributed Technologies
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -28,6 +28,9 @@ import fr.dyade.aaa.agent.Notification;
* Notification used to make a request to another Joram AMQP server.
*/
public class AMQPRequestNot extends Notification {
/** define serialVersionUID for interoperability */
private static final long serialVersionUID = 1L;
public Object obj;
public long keyLock;
public long proxyId;
......
/*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2009 ScalAgent Distributed Technologies
* Copyright (C) 2009 -2019 ScalAgent Distributed Technologies
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -28,6 +28,9 @@ import fr.dyade.aaa.agent.Notification;
* Notification used to answer a request coming from another Joram AMQP server.
*/
public class AMQPResponseNot extends Notification {
/** define serialVersionUID for interoperability */
private static final long serialVersionUID = 1L;
public Object obj;
public long keyLock;
}
/*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2009 ScalAgent Distributed Technologies
* Copyright (C) 2009 - 2019 ScalAgent Distributed Technologies
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -29,5 +29,6 @@ import fr.dyade.aaa.agent.Notification;
* restarted.
*/
public class RestartNot extends Notification {
/** define serialVersionUID for interoperability */
private static final long serialVersionUID = 1L;
}
/*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2008 - 2011 ScalAgent Distributed Technologies
* Copyright (C) 2008 - 2019 ScalAgent Distributed Technologies
* Copyright (C) 2008 - 2009 CNES
*
* This library is free software; you can redistribute it and/or
......@@ -131,8 +131,6 @@ public class AMQP {
public static final int INTERNAL_ERROR = 541;
public static class Connection extends AbstractMarshallingClass {
private static final long serialVersionUID = 1L;
public final static int INDEX = 10;
......@@ -982,8 +980,6 @@ public class AMQP {
}
public static class Channel extends AbstractMarshallingClass {
private static final long serialVersionUID = 1L;
public final static int INDEX = 20;
......@@ -1435,8 +1431,6 @@ public class AMQP {
public static class Exchange extends AbstractMarshallingClass {
private static final long serialVersionUID = 1L;
public final static int INDEX = 40;
public static final int[] mids = { 10, 11, 20, 21 };
......@@ -1827,8 +1821,6 @@ public class AMQP {
}
public static class Queue extends AbstractMarshallingClass {
private static final long serialVersionUID = 1L;
public final static int INDEX = 50;
......@@ -2765,8 +2757,6 @@ public class AMQP {
}
public static class Basic extends AbstractMarshallingClass {
private static final long serialVersionUID = 1L;
public static class BasicProperties implements Serializable {
......@@ -4471,8 +4461,6 @@ public class AMQP {
public static class Tx extends AbstractMarshallingClass {
private static final long serialVersionUID = 1L;
public final static int INDEX = 90;
public static final int[] mids = { 10, 11, 20, 21, 30, 31 };
......
/*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2008 - 2019 ScalAgent Distributed Technologies
* Copyright (C) 2008 - 2009 CNES
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Initial developer(s): ScalAgent Distributed Technologies
* Contributor(s):
*/
package org.ow2.joram.mom.amqp.marshalling;
import java.io.ByteArrayInputStream;
......@@ -9,7 +32,9 @@ import java.util.Arrays;
public class LongStringHelper {
public static class ByteArrayLongString implements LongString {
/** define serialVersionUID for interoperability */
private static final long serialVersionUID = 1L;
byte[] bytes;
public ByteArrayLongString(byte[] bytes) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment