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
b8049ffb
Commit
b8049ffb
authored
Apr 20, 2022
by
Andre Freyssinet
Browse files
Minor changes.
parent
962879c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
joram/a3/common/src/main/java/fr/dyade/aaa/common/Configuration.java
View file @
b8049ffb
/*
* Copyright (C) 2009 ScalAgent Distributed Technologies
* Copyright (C) 2009
- 2022
ScalAgent Distributed Technologies
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -93,7 +93,7 @@ public class Configuration {
*/
public
static
Integer
getInteger
(
String
key
,
int
value
)
{
Integer
result
=
getInteger
(
key
);
return
(
result
==
null
)
?
new
Integer
(
value
)
:
result
;
return
(
result
==
null
)
?
Integer
.
valueOf
(
value
)
:
result
;
}
/**
...
...
@@ -122,7 +122,7 @@ public class Configuration {
*/
public
static
Long
getLong
(
String
key
,
long
value
)
{
Long
result
=
getLong
(
key
);
return
(
result
==
null
)
?
new
Long
(
value
)
:
result
;
return
(
result
==
null
)
?
Long
.
valueOf
(
value
)
:
result
;
}
/**
...
...
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