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:24 UTC
[incubator-hivemall] 09/10: Added curly braces
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 fc756f46e604a3bc99efaeef544883803a84e9cc
Author: Makoto Yui <my...@apache.org>
AuthorDate: Mon Jun 10 15:49:17 2019 +0900
Added curly braces
---
core/src/main/java/hivemall/tools/map/MapRouletteUDF.java | 3 ++-
1 file changed, 2 insertions(+), 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 7aa0132..2c78937 100644
--- a/core/src/main/java/hivemall/tools/map/MapRouletteUDF.java
+++ b/core/src/main/java/hivemall/tools/map/MapRouletteUDF.java
@@ -65,9 +65,10 @@ public final class MapRouletteUDF extends GenericUDF {
@Override
public ObjectInspector initialize(ObjectInspector[] arguments) throws UDFArgumentException {
- if (arguments.length != 1)
+ if (arguments.length != 1) {
throw new UDFArgumentLengthException(
"Expected one arguments for map_find_max_prob: " + arguments.length);
+ }
if (arguments[0].getCategory() != ObjectInspector.Category.MAP) {
throw new UDFArgumentTypeException(0,
"Only map type arguments are accepted for the key but " + arguments[0].getTypeName()