Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix: introduce Preconditions, fix: SmartPoster.getFirstIfExists

  • Loading branch information...
commit 015b49c0988b221f91a745c29e59618e8255d6ee 1 parent d2331fb
yoshihiro503 authored
View
10 src/main/scala/util/Preconditions.scala
@@ -0,0 +1,10 @@
+package org.proofcafe.nfcdemo.util
+
+object Preconditions {
+
+ def checkNotNull[A](x : A): A =
+ if (x != null) x else throw new IllegalArgumentException()
+
+ def checkArgument(b: Boolean): Unit =
+ if (b) () else throw new IllegalArgumentException()
+}
View
4 src/main/scala/util/Preconditions.scala~
@@ -0,0 +1,4 @@
+package org.proofcafe.nfcdemo.util
+
+object Precondition {
+}
Please sign in to comment.
Something went wrong with that request. Please try again.