Avoid redundant boxing
See gh-39259
This commit is contained in:
committed by
Phillip Webb
parent
74a7fbea9d
commit
ac5a08a49b
@@ -108,7 +108,7 @@ class ConfigurationPropertiesCharSequenceToObjectConverterTests {
|
||||
|
||||
@Override
|
||||
public Long convert(CharSequence source) {
|
||||
return Long.valueOf(source.toString()) + 1;
|
||||
return Long.parseLong(source.toString()) + 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ class CharSequenceToObjectConverterTests {
|
||||
|
||||
@Override
|
||||
public Long convert(CharSequence source) {
|
||||
return Long.valueOf(source.toString()) + 1;
|
||||
return Long.parseLong(source.toString()) + 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user