Skip to content

Commit

Permalink
(yegor256#1569) Added wildcards in PropertiesOf ctors.
Browse files Browse the repository at this point in the history
  • Loading branch information
rocket-3 committed Sep 12, 2021
1 parent 7d36807 commit 01c69fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/cactoos/scalar/PropertiesOf.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public PropertiesOf(final Map.Entry<?, ?>... entries) {
* @param entries The map with properties
* @since 0.23
*/
public PropertiesOf(final Iterable<Map.Entry<?, ?>> entries) {
public PropertiesOf(final Iterable<? extends Map.Entry<?, ?>> entries) {
this(
new MapOf<>(
input -> new MapEntry<>(
Expand Down Expand Up @@ -131,7 +131,7 @@ public PropertiesOf(final Map<?, ?> map) {
* Ctor.
* @param sclr The underlying properties
*/
private PropertiesOf(final Scalar<Properties> sclr) {
private PropertiesOf(final Scalar<? extends Properties> sclr) {
this.scalar = new IoChecked<>(sclr);
}

Expand Down

0 comments on commit 01c69fc

Please sign in to comment.