|
6 | 6 | import java.util.List; |
7 | 7 |
|
8 | 8 | public class CodegenParameter extends CodegenObject { |
9 | | - public boolean secondaryParam, notFile; |
| 9 | + public boolean secondaryParam; |
10 | 10 | public String baseName, paramName, dataType, datatypeWithEnum, dataFormat, |
11 | 11 | collectionFormat, description, unescapedDescription, baseType, defaultValue, enumName; |
12 | 12 |
|
@@ -94,7 +94,6 @@ public Boolean getIsBodyParam() { |
94 | 94 |
|
95 | 95 | public CodegenParameter copy() { |
96 | 96 | CodegenParameter output = new CodegenParameter(); |
97 | | - output.notFile = this.notFile; |
98 | 97 | output.secondaryParam = this.secondaryParam; |
99 | 98 | output.baseName = this.baseName; |
100 | 99 | output.paramName = this.paramName; |
@@ -177,8 +176,6 @@ public boolean equals(Object o) { |
177 | 176 | return false; |
178 | 177 | if (jsonSchema != null ? !jsonSchema.equals(that.jsonSchema) : that.jsonSchema != null) |
179 | 178 | return false; |
180 | | - if (notFile != that.notFile) |
181 | | - return false; |
182 | 179 | if (_enum != null ? !_enum.equals(that._enum) : that._enum != null) |
183 | 180 | return false; |
184 | 181 | if (allowableValues != null ? !allowableValues.equals(that.allowableValues) : that.allowableValues != null) |
@@ -229,7 +226,6 @@ public int hashCode() { |
229 | 226 | result = 31 * result + (defaultValue != null ? defaultValue.hashCode() : 0); |
230 | 227 | result = 31 * result + (example != null ? example.hashCode() : 0); |
231 | 228 | result = 31 * result + (jsonSchema != null ? jsonSchema.hashCode() : 0); |
232 | | - result = 31 * result + (notFile ? 13:31); |
233 | 229 | result = 31 * result + (_enum != null ? _enum.hashCode() : 0); |
234 | 230 | result = 31 * result + (allowableValues != null ? allowableValues.hashCode() : 0); |
235 | 231 | result = 31 * result + (items != null ? items.hashCode() : 0); |
@@ -305,8 +301,8 @@ public String getJsonSchema() { |
305 | 301 | return jsonSchema; |
306 | 302 | } |
307 | 303 |
|
308 | | - public boolean getIsNotFile() { |
309 | | - return notFile; |
| 304 | + public boolean getNotFile() { |
| 305 | + return !getIsFile(); |
310 | 306 | } |
311 | 307 |
|
312 | 308 | public List<String> get_enum() { |
|
0 commit comments