Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8e70ece

Browse files
committed
Fix "isFinalSpecification" to "isFinalSpecialization"
1 parent bb13434 commit 8e70ece

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

JavaCodeGenerator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ define(function (require, exports, module) {
194194
if (elem.isAbstract === true) {
195195
modifiers.push("abstract");
196196
}
197-
if (elem.isFinalSpecification === true || elem.isLeaf === true) {
197+
if (elem.isFinalSpecialization === true || elem.isLeaf === true) {
198198
modifiers.push("final");
199199
}
200200
if (elem.concurrency === UML.CCK_CONCURRENT) {

JavaReverseEngineer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ define(function (require, exports, module) {
806806

807807
// Final Class
808808
if (_.contains(classNode.modifiers, "final")) {
809-
_class.isFinalSpecification = true;
809+
_class.isFinalSpecialization = true;
810810
_class.isLeaf = true;
811811
}
812812

@@ -1204,4 +1204,4 @@ define(function (require, exports, module) {
12041204

12051205
exports.analyze = analyze;
12061206

1207-
});
1207+
});

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Belows are the rules to convert from UML model elements to Java source codes.
2121
* converted to _Java Class_. (as a separate `.java` file)
2222
* `visibility` to one of modifiers `public`, `protected`, `private` and none.
2323
* `isAbstract` property to `abstract` modifier.
24-
* `isFinalSpecification` and `isLeaf` property to `final` modifier.
24+
* `isFinalSpecialization` and `isLeaf` property to `final` modifier.
2525
* Default constructor is generated.
2626
* All contained types (_UMLClass_, _UMLInterface_, _UMLEnumeration_) are generated as inner type definition.
2727
* Documentation property to JavaDoc comment.
@@ -120,7 +120,7 @@ Belows are the rules to convert from Java source code to UML model elements.
120120
* `T[]`(array), `java.util.List<T>`, `java.util.Set<T>` or its decendants: `type` property refers to `T` with multiplicity `*`.
121121
* `T` (User-Defined Types) : `type` property refers to the `T` type.
122122
* Otherwise : `type` property has the type name as string.
123-
123+
124124
* Access modifier `public`, `protected` and `private` to `visibility` property.
125125
* `static` modifier to `isStatic` property.
126126
* `final` modifier to `isLeaf` and `isReadOnly` property.
@@ -181,4 +181,4 @@ Belows are the rules to convert from Java source code to UML model elements.
181181

182182
---
183183

184-
Licensed under the MIT license (see LICENSE file).
184+
Licensed under the MIT license (see LICENSE file).

unittests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ define(function (require, exports, module) {
739739
it("can reverse Java Final Class", function () {
740740
runs(function () {
741741
var _class = find("ClassFinalTest");
742-
expect(_class.isFinalSpecification).toBe(true);
742+
expect(_class.isFinalSpecialization).toBe(true);
743743
});
744744
});
745745

0 commit comments

Comments
 (0)