GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — make implicit throw explicit for readability · functionaljava/functionaljava@dd14dd4

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • quickcheck/src/main/java/fj/test
    • Arbitrary.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎quickcheck/src/main/java/fj/test/Arbitrary.java‎

Copy file name to clipboardExpand all lines: quickcheck/src/main/java/fj/test/Arbitrary.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ public static <K, V> Arbitrary<fj.data.TreeMap<K, V>> arbTreeMap(Ord<K> ord, Arb
981981
public static <K, V> Arbitrary<fj.data.TreeMap<K, V>> arbTreeMap(Ord<K> ord, Arbitrary<K> ak, Arbitrary<V> av, Arbitrary<Integer> ai) {
982982
Gen<List<P2<K, V>>> gl2 = ai.gen.bind(i -> {
983983
if (i < 0) {
984-
Bottom.error("Undefined: arbitrary natural is negative (" + i + ")");
984+
throw Bottom.error("Undefined: arbitrary natural is negative (" + i + ")");
985985
}
986986
return Gen.sequenceN(Math.max(i, 0), arbP2(ak, av).gen);
987987
});
@@ -993,7 +993,7 @@ public static <K, V> Arbitrary<fj.data.TreeMap<K, V>> arbTreeMap(Ord<K> ord, Arb
993993
*/
994994
public static <K, V> Arbitrary<fj.data.TreeMap<K, V>> arbTreeMap(Ord<K> ord, Arbitrary<K> ak, Arbitrary<V> av, int maxSize) {
995995
if (maxSize < 0) {
996-
Bottom.error("Undefined: arbitrary natural is negative (" + maxSize + ")");
996+
throw Bottom.error("Undefined: arbitrary natural is negative (" + maxSize + ")");
997997
}
998998
return arbTreeMap(ord, ak, av, arbitrary(choose(0, maxSize)));
999999
}

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.