Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
joram
joram
Commits
87c988b3
Commit
87c988b3
authored
Mar 18, 2022
by
Andre Freyssinet
Browse files
Fix deprecated warning.
parent
0719d206
Changes
1
Hide whitespace changes
Inline
Side-by-side
joram/joram/mom/amqp/src/main/java/org/ow2/joram/mom/amqp/marshalling/AMQPInputStream.java
View file @
87c988b3
/*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2008 - 20
11
ScalAgent Distributed Technologies
* Copyright (C) 2008 - 20
22
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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment