Commit 87c988b3 authored by Andre Freyssinet's avatar Andre Freyssinet
Browse files

Fix deprecated warning.

parent 0719d206
/*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2008 - 2011 ScalAgent Distributed Technologies
* Copyright (C) 2008 - 2022 ScalAgent Distributed Technologies
* Copyright (C) 2008 - 2009 CNES
*
* This library is free software; you can redistribute it and/or
......@@ -123,7 +123,7 @@ public class AMQPInputStream {
value = readLongstr();
break;
case 'I':
value = new Integer(StreamUtil.readIntFrom(in));
value = Integer.valueOf(StreamUtil.readIntFrom(in));
break;
case 'D':
int scale = StreamUtil.readUnsignedByteFrom(in);
......@@ -137,37 +137,37 @@ public class AMQPInputStream {
value = readTable();
break;
case 'B':
value = new Byte(StreamUtil.readByteFrom(in));
value = Byte.valueOf(StreamUtil.readByteFrom(in));
break;
case 'U':
value = new Short(StreamUtil.readShortFrom(in));
value = Short.valueOf(StreamUtil.readShortFrom(in));
break;
case 'L':
value = new Long(StreamUtil.readLongFrom(in));
value = Long.valueOf(StreamUtil.readLongFrom(in));
break;
case 'A':
value = readArray();
break;
case 'f':
value = new Float(StreamUtil.readFloatFrom(in));
value = Float.valueOf(StreamUtil.readFloatFrom(in));
break;
case 'd':
value = new Double(StreamUtil.readDoubleFrom(in));
value = Double.valueOf(StreamUtil.readDoubleFrom(in));
break;
case 'b':
value = new Byte(StreamUtil.readByteFrom(in));
value = Byte.valueOf(StreamUtil.readByteFrom(in));
break;
case 'l':
value = new Long(StreamUtil.readLongFrom(in));
value = Long.valueOf(StreamUtil.readLongFrom(in));
break;
case 't':
value = new Boolean(readBoolean());
value = Boolean.valueOf(readBoolean());
break;
case 'V':
value = null;
break;
case 's':
value = new Boolean(StreamUtil.readShortStringFrom(in));
value = Boolean.valueOf(StreamUtil.readShortStringFrom(in));
break;
default:
throw new SyntaxErrorException("Unrecognised object type in table: " + (char) type);
......
Supports Markdown
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