From 3a08955a827587ac2c0f15e0c54a4b8ccf5ce220 Mon Sep 17 00:00:00 2001 From: Alexander Shitikov Date: Wed, 10 Feb 2016 10:35:50 +0300 Subject: [PATCH] Added forgotten statement --- .../java/ru/objective/jni/tasks/builders/ClassBuilder.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/ru/objective/jni/tasks/builders/ClassBuilder.java b/src/main/java/ru/objective/jni/tasks/builders/ClassBuilder.java index e63eee7..ba0a2e6 100644 --- a/src/main/java/ru/objective/jni/tasks/builders/ClassBuilder.java +++ b/src/main/java/ru/objective/jni/tasks/builders/ClassBuilder.java @@ -400,6 +400,10 @@ public String generateArgumentString(Method method) { if (type.equals(Type.LONG) || type.equals(Type.DOUBLE)) var_index++; + if (Utils.isOccupiedWord(var_name)){ + var_name = "_" + var_name; + } + builder.append(", "); if (Utils.isArrayType(type)) {