Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
AlmasB committed Sep 2, 2022
1 parent c9851eb commit b255a9d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class PropertyMap {
*/
fun exists(propertyName: String) = properties.containsKey(propertyName)

fun <T> getValueOptional(propertyName: String): Optional<T> {
fun <T : Any> getValueOptional(propertyName: String): Optional<T> {
try {
return Optional.ofNullable(getValue(propertyName))
} catch (e: Exception) {
Expand Down

0 comments on commit b255a9d

Please sign in to comment.