Skip to content

Commit

Permalink
Hided HashCodes from the public API
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldietrich committed Jan 7, 2019
1 parent 470eb38 commit a3876ad
Show file tree
Hide file tree
Showing 19 changed files with 1,422 additions and 43 deletions.
465 changes: 465 additions & 0 deletions vavr-benchmark/src/test/java/io/vavr/other/HashCodes.java

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import io.vavr.API;
import io.vavr.JmhRunner;
import io.vavr.collection.Array;
import io.vavr.control.HashCodes;
import org.junit.Test;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.Scope;
Expand Down
2 changes: 1 addition & 1 deletion vavr/generator/Generator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2058,7 +2058,7 @@ def generateMainClasses(): Unit = {

@Override
public int hashCode() {
return ${if (i == 0) "1" else s"""${im.getType("io.vavr.control.HashCodes")}.hash(${(1 to i).gen(j => s"_$j")(", ")})"""};
return ${if (i == 0) "1" else s"""${im.getType("io.vavr.HashCodes")}.hash(${(1 to i).gen(j => s"_$j")(", ")})"""};
}

@Override
Expand Down
1 change: 0 additions & 1 deletion vavr/src-gen/main/java/io/vavr/Tuple1.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import io.vavr.collection.Iterator;
import io.vavr.collection.List;
import io.vavr.collection.Seq;
import io.vavr.control.HashCodes;
import java.io.Serializable;
import java.util.Comparator;
import java.util.Objects;
Expand Down
1 change: 0 additions & 1 deletion vavr/src-gen/main/java/io/vavr/Tuple2.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import io.vavr.collection.Iterator;
import io.vavr.collection.List;
import io.vavr.collection.Seq;
import io.vavr.control.HashCodes;
import java.io.Serializable;
import java.util.AbstractMap;
import java.util.Comparator;
Expand Down
1 change: 0 additions & 1 deletion vavr/src-gen/main/java/io/vavr/Tuple3.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import io.vavr.collection.Iterator;
import io.vavr.collection.List;
import io.vavr.collection.Seq;
import io.vavr.control.HashCodes;
import java.io.Serializable;
import java.util.Comparator;
import java.util.Objects;
Expand Down
1 change: 0 additions & 1 deletion vavr/src-gen/main/java/io/vavr/Tuple4.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import io.vavr.collection.Iterator;
import io.vavr.collection.List;
import io.vavr.collection.Seq;
import io.vavr.control.HashCodes;
import java.io.Serializable;
import java.util.Comparator;
import java.util.Objects;
Expand Down
1 change: 0 additions & 1 deletion vavr/src-gen/main/java/io/vavr/Tuple5.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import io.vavr.collection.Iterator;
import io.vavr.collection.List;
import io.vavr.collection.Seq;
import io.vavr.control.HashCodes;
import java.io.Serializable;
import java.util.Comparator;
import java.util.Objects;
Expand Down
1 change: 0 additions & 1 deletion vavr/src-gen/main/java/io/vavr/Tuple6.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import io.vavr.collection.Iterator;
import io.vavr.collection.List;
import io.vavr.collection.Seq;
import io.vavr.control.HashCodes;
import java.io.Serializable;
import java.util.Comparator;
import java.util.Objects;
Expand Down
1 change: 0 additions & 1 deletion vavr/src-gen/main/java/io/vavr/Tuple7.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import io.vavr.collection.Iterator;
import io.vavr.collection.List;
import io.vavr.collection.Seq;
import io.vavr.control.HashCodes;
import java.io.Serializable;
import java.util.Comparator;
import java.util.Objects;
Expand Down
1 change: 0 additions & 1 deletion vavr/src-gen/main/java/io/vavr/Tuple8.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import io.vavr.collection.Iterator;
import io.vavr.collection.List;
import io.vavr.collection.Seq;
import io.vavr.control.HashCodes;
import java.io.Serializable;
import java.util.Comparator;
import java.util.Objects;
Expand Down
Loading

0 comments on commit a3876ad

Please sign in to comment.