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/06/10 06:51:20 UTC

[incubator-hivemall] 05/10: Changed instance method to static

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

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

commit c4a78cd46551660e6b2790b317f437400463b064
Author: Makoto Yui <my...@apache.org>
AuthorDate: Mon Jun 10 15:38:01 2019 +0900

    Changed instance method to static
---
 core/src/main/java/hivemall/tools/map/MapRouletteUDF.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/src/main/java/hivemall/tools/map/MapRouletteUDF.java b/core/src/main/java/hivemall/tools/map/MapRouletteUDF.java
index efc0740..6964d60 100644
--- a/core/src/main/java/hivemall/tools/map/MapRouletteUDF.java
+++ b/core/src/main/java/hivemall/tools/map/MapRouletteUDF.java
@@ -64,7 +64,7 @@ public class MapRouletteUDF extends GenericUDF {
      * @param m A map contains a lot of item as key, with their weight as value
      * @return The key that computer selected according to key's weight
      */
-    private Object algorithm(Map<Object, Double> m) {
+    private static Object algorithm(Map<Object, Double> m) {
         // normalize the weight
         double sum = 0;
         for (Map.Entry<Object, Double> entry : m.entrySet()) {