Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
joram
joram
Commits
446f9b4c
Commit
446f9b4c
authored
Oct 04, 2017
by
afreyssin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor changes.
parent
c2316645
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
joram/joram/client/jms/src/main/java/org/objectweb/joram/client/jms/MapMessage.java
.../main/java/org/objectweb/joram/client/jms/MapMessage.java
+4
-6
No files found.
joram/joram/client/jms/src/main/java/org/objectweb/joram/client/jms/MapMessage.java
View file @
446f9b4c
/*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2001 - 201
3
ScalAgent Distributed Technologies
* Copyright (C) 2001 - 201
7
ScalAgent Distributed Technologies
* Copyright (C) 1996 - 2000 Dyade
*
* This library is free software; you can redistribute it and/or
...
...
@@ -309,8 +309,7 @@ public final class MapMessage extends Message implements javax.jms.MapMessage {
*/
public
void
setObject
(
String
name
,
Object
value
)
throws
JMSException
{
if
(
RObody
)
throw
new
MessageNotWriteableException
(
"Can't set a value as the message"
+
" body is read-only."
);
throw
new
MessageNotWriteableException
(
"Can't set a value as the message body is read-only."
);
if
(
name
==
null
||
name
.
equals
(
""
))
throw
new
IllegalArgumentException
(
"Invalid null or empty value name."
);
...
...
@@ -320,8 +319,7 @@ public final class MapMessage extends Message implements javax.jms.MapMessage {
value
instanceof
byte
[]
||
value
==
null
)
map
.
put
(
name
,
value
);
else
throw
new
MessageFormatException
(
"Can't set non Java primitive type as"
+
" a map value."
);
throw
new
MessageFormatException
(
"Can't set non Java primitive type as a map value."
);
}
/**
...
...
@@ -510,7 +508,7 @@ public final class MapMessage extends Message implements javax.jms.MapMessage {
if
(
value
instanceof
byte
[])
throw
new
MessageFormatException
(
"Type "
+
value
.
getClass
().
getName
()
+
" can't be converted to String."
);
return
ConversionHelper
.
toString
(
map
.
get
(
name
)
);
return
ConversionHelper
.
toString
(
value
);
}
/**
...
...
Write
Preview
Markdown
is supported
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