Skip to content

Commit

Permalink
fix checkstyle: imports and deprecated URL class
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaroslav authored and yaroslav committed Nov 29, 2024
1 parent 55370ed commit 0b162b5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
11 changes: 7 additions & 4 deletions src/main/java/org/cactoos/iterable/IterableOf.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,18 @@
package org.cactoos.iterable;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.Iterator;
import org.cactoos.Fallback;
import org.cactoos.Scalar;
import org.cactoos.iterator.IteratorOf;
import org.cactoos.scalar.*;
import org.cactoos.scalar.And;
import org.cactoos.scalar.HashCode;
import org.cactoos.scalar.Or;
import org.cactoos.scalar.ScalarWithFallback;
import org.cactoos.scalar.Unchecked;
import org.cactoos.text.Joined;
import org.cactoos.text.UncheckedText;

import java.util.Iterator;

/**
* Array as iterable.
*
Expand Down Expand Up @@ -116,7 +119,7 @@ public boolean equals(final Object other) {
@Override
public int hashCode() {
return new Unchecked<>(
new HashCode(42, 37, this)
new HashCode(42, 37, this)
).value();
}

Expand Down
5 changes: 2 additions & 3 deletions src/main/java/org/cactoos/map/MapEntry.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@
*/
package org.cactoos.map;

import java.util.Map;
import org.cactoos.iterable.IterableOf;
import org.cactoos.scalar.HashCode;
import org.cactoos.text.FormattedText;
import org.cactoos.text.UncheckedText;

import java.util.Map;

/**
* MapEntry as {@link java.util.AbstractMap.Entry}.
*
Expand Down Expand Up @@ -98,7 +97,7 @@ public boolean equals(final Object obj) {
@Override
public int hashCode() {
return new HashCode(
new IterableOf<>(this.key, this.value)
new IterableOf<>(this.key, this.value)
).value();
}
}

0 comments on commit 0b162b5

Please sign in to comment.