Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
b7784f61
Commit
b7784f61
authored
14 years ago
by
cramakri
Browse files
Options
Downloads
Patches
Plain Diff
LMS-1767 Made the reflection string traverser more robust.
SVN: 18624
parent
b6fb87a7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/source/java/ch/systemsx/cisd/common/utilities/ReflectionStringTraverser.java
+8
-0
8 additions, 0 deletions
...emsx/cisd/common/utilities/ReflectionStringTraverser.java
with
8 additions
and
0 deletions
common/source/java/ch/systemsx/cisd/common/utilities/ReflectionStringTraverser.java
+
8
−
0
View file @
b7784f61
...
@@ -229,6 +229,10 @@ public class ReflectionStringTraverser
...
@@ -229,6 +229,10 @@ public class ReflectionStringTraverser
for
(
int
index
=
0
;
index
<
length
;
++
index
)
for
(
int
index
=
0
;
index
<
length
;
++
index
)
{
{
Object
element
=
Array
.
get
(
array
,
index
);
Object
element
=
Array
.
get
(
array
,
index
);
if
(
element
==
null
)
{
continue
;
}
if
(
isString
(
element
))
if
(
isString
(
element
))
{
{
visitStringArrayElement
(
array
,
index
,
element
,
componentType
);
visitStringArrayElement
(
array
,
index
,
element
,
componentType
);
...
@@ -310,6 +314,10 @@ public class ReflectionStringTraverser
...
@@ -310,6 +314,10 @@ public class ReflectionStringTraverser
private
static
boolean
isStringCollection
(
Collection
<?>
collection
)
private
static
boolean
isStringCollection
(
Collection
<?>
collection
)
{
{
if
(
collection
.
isEmpty
())
{
return
false
;
}
Class
<?>
elementClass
=
figureElementClass
(
collection
);
Class
<?>
elementClass
=
figureElementClass
(
collection
);
return
isStringClass
(
elementClass
);
return
isStringClass
(
elementClass
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment