@@ -917,19 +917,19 @@ private void configureBackend( final Optional<Path> dbHome, Element con ) throws
917
917
try {
918
918
final int collectionCacheBytes ;
919
919
if (collectionCache .endsWith ("k" )) {
920
- collectionCacheBytes = 1024 * Integer .valueOf (collectionCache .substring (0 , collectionCache .length () - 1 ));
920
+ collectionCacheBytes = 1024 * Integer .parseInt (collectionCache .substring (0 , collectionCache .length () - 1 ));
921
921
} else if (collectionCache .endsWith ("kb" )) {
922
- collectionCacheBytes = 1024 * Integer .valueOf (collectionCache .substring (0 , collectionCache .length () - 2 ));
922
+ collectionCacheBytes = 1024 * Integer .parseInt (collectionCache .substring (0 , collectionCache .length () - 2 ));
923
923
} else if (collectionCache .endsWith ("m" )) {
924
- collectionCacheBytes = 1024 * 1024 * Integer .valueOf (collectionCache .substring (0 , collectionCache .length () - 1 ));
924
+ collectionCacheBytes = 1024 * 1024 * Integer .parseInt (collectionCache .substring (0 , collectionCache .length () - 1 ));
925
925
} else if (collectionCache .endsWith ("mb" )) {
926
- collectionCacheBytes = 1024 * 1024 * Integer .valueOf (collectionCache .substring (0 , collectionCache .length () - 2 ));
926
+ collectionCacheBytes = 1024 * 1024 * Integer .parseInt (collectionCache .substring (0 , collectionCache .length () - 2 ));
927
927
} else if (collectionCache .endsWith ("g" )) {
928
- collectionCacheBytes = 1024 * 1024 * 1024 * Integer .valueOf (collectionCache .substring (0 , collectionCache .length () - 1 ));
928
+ collectionCacheBytes = 1024 * 1024 * 1024 * Integer .parseInt (collectionCache .substring (0 , collectionCache .length () - 1 ));
929
929
} else if (collectionCache .endsWith ("gb" )) {
930
- collectionCacheBytes = 1024 * 1024 * 1024 * Integer .valueOf (collectionCache .substring (0 , collectionCache .length () - 2 ));
930
+ collectionCacheBytes = 1024 * 1024 * 1024 * Integer .parseInt (collectionCache .substring (0 , collectionCache .length () - 2 ));
931
931
} else {
932
- collectionCacheBytes = Integer .valueOf (collectionCache );
932
+ collectionCacheBytes = Integer .parseInt (collectionCache );
933
933
}
934
934
935
935
config .put (CollectionCache .PROPERTY_CACHE_SIZE_BYTES , collectionCacheBytes );
@@ -1005,7 +1005,7 @@ private void configureBackend( final Optional<Path> dbHome, Element con ) throws
1005
1005
if (posixChownRestrictedStr == null ) {
1006
1006
posixChownRestricted = true ; // default
1007
1007
} else {
1008
- if (Boolean .valueOf (posixChownRestrictedStr )) {
1008
+ if (Boolean .parseBoolean (posixChownRestrictedStr )) {
1009
1009
posixChownRestricted = true ;
1010
1010
} else {
1011
1011
// configuration explicitly specifies that posix chown should NOT be restricted
@@ -1019,7 +1019,7 @@ private void configureBackend( final Optional<Path> dbHome, Element con ) throws
1019
1019
if (preserveOnCopyStr == null ) {
1020
1020
preserveOnCopy = DBBroker .PreserveType .NO_PRESERVE ; // default
1021
1021
} else {
1022
- if (Boolean .valueOf (preserveOnCopyStr )) {
1022
+ if (Boolean .parseBoolean (preserveOnCopyStr )) {
1023
1023
// configuration explicitly specifies that attributes should be preserved on copy
1024
1024
preserveOnCopy = DBBroker .PreserveType .PRESERVE ;
1025
1025
} else {
0 commit comments