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
b3ce77db
Commit
b3ce77db
authored
14 years ago
by
felmer
Browse files
Options
Downloads
Patches
Plain Diff
LMS-1484 method gs renamed to getSubset
SVN: 16130
parent
658fdb31
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/ExtendedProperties.java
+3
-3
3 additions, 3 deletions
...ch/systemsx/cisd/common/utilities/ExtendedProperties.java
with
3 additions
and
3 deletions
common/source/java/ch/systemsx/cisd/common/utilities/ExtendedProperties.java
+
3
−
3
View file @
b3ce77db
...
@@ -110,10 +110,10 @@ public final class ExtendedProperties extends Properties
...
@@ -110,10 +110,10 @@ public final class ExtendedProperties extends Properties
{
{
assert
prefix
!=
null
:
"Missing prefix"
;
assert
prefix
!=
null
:
"Missing prefix"
;
return
g
s
(
prefix
,
dropPrefix
,
new
HashSet
<
String
>());
return
g
etSubset
(
prefix
,
dropPrefix
,
new
HashSet
<
String
>());
}
}
private
ExtendedProperties
g
s
(
final
String
prefix
,
final
boolean
dropPrefix
,
Set
<
String
>
keys
)
private
ExtendedProperties
g
etSubset
(
final
String
prefix
,
final
boolean
dropPrefix
,
Set
<
String
>
keys
)
{
{
final
ExtendedProperties
result
=
new
ExtendedProperties
();
final
ExtendedProperties
result
=
new
ExtendedProperties
();
final
int
prefixLength
=
prefix
.
length
();
final
int
prefixLength
=
prefix
.
length
();
...
@@ -125,7 +125,7 @@ public final class ExtendedProperties extends Properties
...
@@ -125,7 +125,7 @@ public final class ExtendedProperties extends Properties
assertNoCyclicDependency
(
keys
,
key
);
assertNoCyclicDependency
(
keys
,
key
);
keys
.
add
(
key
);
keys
.
add
(
key
);
String
inheritTree
=
super
.
getProperty
(
key
);
String
inheritTree
=
super
.
getProperty
(
key
);
for
(
Entry
<
Object
,
Object
>
entry
:
g
s
(
inheritTree
,
true
,
keys
).
entrySet
())
for
(
Entry
<
Object
,
Object
>
entry
:
g
etSubset
(
inheritTree
,
true
,
keys
).
entrySet
())
{
{
String
newKey
=
key
.
substring
(
0
,
key
.
length
())
+
entry
.
getKey
();
String
newKey
=
key
.
substring
(
0
,
key
.
length
())
+
entry
.
getKey
();
result
.
put
(
createKey
(
newKey
,
dropPrefix
,
prefixLength
),
entry
.
getValue
());
result
.
put
(
createKey
(
newKey
,
dropPrefix
,
prefixLength
),
entry
.
getValue
());
...
...
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