You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hivemall.apache.org by my...@apache.org on 2019/10/08 07:15:37 UTC

[incubator-hivemall] branch master updated: Fixed annotations

This is an automated email from the ASF dual-hosted git repository.

myui pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hivemall.git


The following commit(s) were added to refs/heads/master by this push:
     new a0f90cb  Fixed annotations
a0f90cb is described below

commit a0f90cbc7d4f811c2e3e82fd7e2d2d56014f6f4c
Author: Makoto Yui <my...@apache.org>
AuthorDate: Tue Oct 8 16:15:24 2019 +0900

    Fixed annotations
---
 core/src/main/java/hivemall/utils/lang/ArrayUtils.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/src/main/java/hivemall/utils/lang/ArrayUtils.java b/core/src/main/java/hivemall/utils/lang/ArrayUtils.java
index f90011f..5945118 100644
--- a/core/src/main/java/hivemall/utils/lang/ArrayUtils.java
+++ b/core/src/main/java/hivemall/utils/lang/ArrayUtils.java
@@ -297,7 +297,7 @@ public final class ArrayUtils {
         return INDEX_NOT_FOUND;
     }
 
-    public static int insertionPoint(@Nullable final int[] a, final int key) {
+    public static int insertionPoint(@Nonnull final int[] a, final int key) {
         final int pos = Arrays.binarySearch(a, key);
         if (pos < 0) {
             return ~pos;
@@ -306,7 +306,7 @@ public final class ArrayUtils {
         }
     }
 
-    public static int insertionPoint(@Nullable final int[] a, final int size, final int key) {
+    public static int insertionPoint(@Nonnull final int[] a, final int size, final int key) {
         final int pos = Arrays.binarySearch(a, 0, size, key);
         if (pos < 0) {
             return ~pos;