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
5435985a
Commit
5435985a
authored
Jun 16, 2010
by
Guillaume Surrel
Browse files
Fix: avoid possible ClassCastException
parent
5642e71a
Changes
1
Hide whitespace changes
Inline
Side-by-side
joram/src/org/objectweb/joram/mom/dest/MonitoringAcquisition.java
View file @
5435985a
...
...
@@ -28,6 +28,7 @@ import java.util.List;
import
java.util.Properties
;
import
java.util.Vector
;
import
org.objectweb.joram.shared.messages.ConversionHelper
;
import
org.objectweb.joram.shared.messages.Message
;
public
class
MonitoringAcquisition
implements
AcquisitionHandler
{
...
...
@@ -48,7 +49,7 @@ public class MonitoringAcquisition implements AcquisitionHandler {
Enumeration
e
=
properties
.
keys
();
while
(
e
.
hasMoreElements
())
{
String
name
=
(
String
)
e
.
nextElement
();
String
attributes
=
(
String
)
properties
.
get
(
name
);
String
attributes
=
ConversionHelper
.
to
String
(
properties
.
get
(
name
)
)
;
elements
.
add
(
new
MonitoringElement
(
name
,
attributes
));
}
}
...
...
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