Skip to content

Commit cb01752

Browse files
authored
Merge pull request #37 from camporter/use_meta_name_on_masks
Use the meta name on masks instead of the name after converting for reserved keywords in java
2 parents a6377e9 + 9cb60d9 commit cb01752

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gen/src/main/java/com/softlayer/api/gen/ClassWriter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,12 @@ public ClassWriter emitMask() throws IOException {
114114
for (TypeClass.Property property : type.properties) {
115115
if (property.nonArrayJavaType.startsWith("com.")) {
116116
beginMethod(property.nonArrayJavaType + ".Mask", property.name, PUBLIC).
117-
emitStatement("return withSubMask(%s, %s.class)", stringLiteral(property.name),
117+
emitStatement("return withSubMask(%s, %s.class)", stringLiteral(property.meta.name),
118118
compressType(property.nonArrayJavaType + ".Mask")).
119119
endMethod().emitEmptyLine();
120120
} else {
121121
beginMethod("Mask", property.name, PUBLIC).
122-
emitStatement("withLocalProperty(%s)", stringLiteral(property.name)).
122+
emitStatement("withLocalProperty(%s)", stringLiteral(property.meta.name)).
123123
emitStatement("return this").
124124
endMethod().emitEmptyLine();
125125
}

0 commit comments

Comments
 (0)