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 <[email protected]> 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()
