Permalink
Browse files

[Code Generation] Array generated for multiplicity 1 #1

  • Loading branch information...
1 parent 00ae9cd commit 31d339801cdbcc1a5ff9704dde1c842b4f72bb7a @niklauslee niklauslee committed Dec 28, 2014
Showing with 3 additions and 3 deletions.
  1. +2 −2 JavaCodeGenerator.js
  2. +1 −1 JavaPreferences.js
@@ -259,7 +259,7 @@ define(function (require, exports, module) {
} else {
_type = "Set<" + _type + ">";
}
- } else if (elem.multiplicity.match(/^\d+$/)) { // number
+ } else if (elem.multiplicity !== "1" && elem.multiplicity.match(/^\d+$/)) { // number
_type += "[]";
}
}
@@ -731,4 +731,4 @@ define(function (require, exports, module) {
exports.generate = generate;
-});
+});
View
@@ -20,7 +20,7 @@ define(function (require, exports, module) {
var AppInit = app.getModule("utils/AppInit"),
Core = app.getModule("core/Core"),
- PreferenceManager = app.getModule("preference/PreferenceManager");
+ PreferenceManager = app.getModule("core/PreferenceManager");
var preferenceId = "java";

0 comments on commit 31d3398

Please sign in to comment.