diff --git a/bin/android-petstore-all.sh b/bin/android-petstore-all.sh
new file mode 100755
index 000000000000..08a03263a856
--- /dev/null
+++ b/bin/android-petstore-all.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+./bin/android-petstore-httpclient.sh
+./bin/android-petstore-volley.sh
+
diff --git a/modules/swagger-codegen/src/main/resources/android/libraries/volley/model.mustache b/modules/swagger-codegen/src/main/resources/android/libraries/volley/model.mustache
index 525a29cb39ad..0eb066cb6f2d 100644
--- a/modules/swagger-codegen/src/main/resources/android/libraries/volley/model.mustache
+++ b/modules/swagger-codegen/src/main/resources/android/libraries/volley/model.mustache
@@ -48,7 +48,7 @@ public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}} {
return false;
}
{{classname}} {{classVarName}} = ({{classname}}) o;{{#hasVars}}
- return {{#vars}}({{name}} == null ? {{classVarName}}.{{name}} == null : {{name}}.equals({{classVarName}}.{{name}})){{#hasMore}} &&
+ return {{#vars}}(this.{{name}} == null ? {{classVarName}}.{{name}} == null : this.{{name}}.equals({{classVarName}}.{{name}})){{#hasMore}} &&
{{/hasMore}}{{^hasMore}};{{/hasMore}}{{/vars}}{{/hasVars}}{{^hasVars}}
return true;{{/hasVars}}
}
diff --git a/modules/swagger-codegen/src/main/resources/android/model.mustache b/modules/swagger-codegen/src/main/resources/android/model.mustache
index df99de874031..701af6de43ba 100644
--- a/modules/swagger-codegen/src/main/resources/android/model.mustache
+++ b/modules/swagger-codegen/src/main/resources/android/model.mustache
@@ -47,7 +47,7 @@ public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}} {
return false;
}
{{classname}} {{classVarName}} = ({{classname}}) o;{{#hasVars}}
- return {{#vars}}({{name}} == null ? {{classVarName}}.{{name}} == null : {{name}}.equals({{classVarName}}.{{name}})){{#hasMore}} &&
+ return {{#vars}}(this.{{name}} == null ? {{classVarName}}.{{name}} == null : this.{{name}}.equals({{classVarName}}.{{name}})){{#hasMore}} &&
{{/hasMore}}{{^hasMore}};{{/hasMore}}{{/vars}}{{/hasVars}}{{^hasVars}}
return true;{{/hasVars}}
}
diff --git a/samples/client/petstore/android/httpclient/docs/PetApi.md b/samples/client/petstore/android/httpclient/docs/PetApi.md
index f0f8ad40fbeb..7b5585e3f58a 100644
--- a/samples/client/petstore/android/httpclient/docs/PetApi.md
+++ b/samples/client/petstore/android/httpclient/docs/PetApi.md
@@ -128,7 +128,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **status** | [**List<String>**](String.md)| Status values that need to be considered for filter | [optional] [default to available]
+ **status** | [**List<String>**](String.md)| Status values that need to be considered for filter | [optional] [default to available] [enum: available, pending, sold]
### Return type
diff --git a/samples/client/petstore/android/httpclient/git_push.sh b/samples/client/petstore/android/httpclient/git_push.sh
index ed374619b139..792320114fbe 100644
--- a/samples/client/petstore/android/httpclient/git_push.sh
+++ b/samples/client/petstore/android/httpclient/git_push.sh
@@ -28,7 +28,7 @@ git init
# Adds the files in the local repository and stages them for commit.
git add .
-# Commits the tracked changes and prepares them to be pushed to a remote repository.
+# Commits the tracked changes and prepares them to be pushed to a remote repository.
git commit -m "$release_note"
# Sets the new remote
diff --git a/samples/client/petstore/android/httpclient/settings.gradle b/samples/client/petstore/android/httpclient/settings.gradle
index 6a6796bf9fe1..599d68821892 100644
--- a/samples/client/petstore/android/httpclient/settings.gradle
+++ b/samples/client/petstore/android/httpclient/settings.gradle
@@ -1 +1 @@
-rootProject.name = "swagger-android-client"
\ No newline at end of file
+rootProject.name = "swagger-android-client"
diff --git a/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/ApiException.java b/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/ApiException.java
index 31bc8a0978ad..5b2b0e7dbf55 100644
--- a/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/ApiException.java
+++ b/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/ApiException.java
@@ -1,3 +1,27 @@
+/**
+ * Swagger Petstore
+ * This is a sample server Petstore server. You can find out more about Swagger at http://swagger.io or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
+ *
+ * OpenAPI spec version: 1.0.0
+ * Contact: apiteam@wordnik.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package io.swagger.client;
public class ApiException extends Exception {
@@ -14,16 +38,16 @@ public class ApiException extends Exception {
public int getCode() {
return code;
}
-
+
public void setCode(int code) {
this.code = code;
}
-
+
public String getMessage() {
return message;
}
-
+
public void setMessage(String message) {
this.message = message;
}
-}
\ No newline at end of file
+}
diff --git a/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/ApiInvoker.java b/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/ApiInvoker.java
index ecb787006dd1..24f5a129780e 100644
--- a/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/ApiInvoker.java
+++ b/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/ApiInvoker.java
@@ -1,3 +1,27 @@
+/**
+ * Swagger Petstore
+ * This is a sample server Petstore server. You can find out more about Swagger at http://swagger.io or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
+ *
+ * OpenAPI spec version: 1.0.0
+ * Contact: apiteam@wordnik.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package io.swagger.client;
import org.apache.http.*;
diff --git a/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/HttpPatch.java b/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/HttpPatch.java
index cb97056dbc94..e880e64070bd 100644
--- a/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/HttpPatch.java
+++ b/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/HttpPatch.java
@@ -1,3 +1,27 @@
+/**
+ * Swagger Petstore
+ * This is a sample server Petstore server. You can find out more about Swagger at http://swagger.io or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
+ *
+ * OpenAPI spec version: 1.0.0
+ * Contact: apiteam@wordnik.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package io.swagger.client;
import org.apache.http.client.methods.*;
@@ -13,4 +37,4 @@ public class HttpPatch extends HttpPost {
public String getMethod() {
return METHOD_PATCH;
}
-}
\ No newline at end of file
+}
diff --git a/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/Pair.java b/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/Pair.java
index 2710fb5a99be..d9c600b04c98 100644
--- a/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/Pair.java
+++ b/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/Pair.java
@@ -1,3 +1,27 @@
+/**
+ * Swagger Petstore
+ * This is a sample server Petstore server. You can find out more about Swagger at http://swagger.io or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
+ *
+ * OpenAPI spec version: 1.0.0
+ * Contact: apiteam@wordnik.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package io.swagger.client;
public class Pair {
diff --git a/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/api/PetApi.java b/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/api/PetApi.java
index 52e84575ad33..3960e910f6cc 100644
--- a/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/api/PetApi.java
+++ b/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/api/PetApi.java
@@ -1,3 +1,27 @@
+/**
+ * Swagger Petstore
+ * This is a sample server Petstore server. You can find out more about Swagger at http://swagger.io or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
+ *
+ * OpenAPI spec version: 1.0.0
+ * Contact: apiteam@wordnik.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package io.swagger.client.api;
import io.swagger.client.ApiException;
diff --git a/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/api/StoreApi.java b/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/api/StoreApi.java
index d20c70ad997f..0672d5c8d5c9 100644
--- a/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/api/StoreApi.java
+++ b/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/api/StoreApi.java
@@ -1,3 +1,27 @@
+/**
+ * Swagger Petstore
+ * This is a sample server Petstore server. You can find out more about Swagger at http://swagger.io or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
+ *
+ * OpenAPI spec version: 1.0.0
+ * Contact: apiteam@wordnik.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package io.swagger.client.api;
import io.swagger.client.ApiException;
diff --git a/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/api/UserApi.java b/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/api/UserApi.java
index 5f61ba724ae2..8a2c64ba9c4d 100644
--- a/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/api/UserApi.java
+++ b/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/api/UserApi.java
@@ -1,3 +1,27 @@
+/**
+ * Swagger Petstore
+ * This is a sample server Petstore server. You can find out more about Swagger at http://swagger.io or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
+ *
+ * OpenAPI spec version: 1.0.0
+ * Contact: apiteam@wordnik.com
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package io.swagger.client.api;
import io.swagger.client.ApiException;
diff --git a/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/model/Category.java b/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/model/Category.java
index f5d5ea86b631..eb8367eb21b0 100644
--- a/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/model/Category.java
+++ b/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/model/Category.java
@@ -43,11 +43,11 @@ public class Category {
return false;
}
Category category = (Category) o;
- return (id == null ? category.id == null : id.equals(category.id)) &&
- (name == null ? category.name == null : name.equals(category.name));
+ return (this.id == null ? category.id == null : this.id.equals(category.id)) &&
+ (this.name == null ? category.name == null : this.name.equals(category.name));
}
- @Override
+ @Override
public int hashCode() {
int result = 17;
result = 31 * result + (id == null ? 0: id.hashCode());
diff --git a/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/model/Order.java b/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/model/Order.java
index f184238f7176..bd92826b56bd 100644
--- a/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/model/Order.java
+++ b/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/model/Order.java
@@ -96,15 +96,15 @@ public class Order {
return false;
}
Order order = (Order) o;
- return (id == null ? order.id == null : id.equals(order.id)) &&
- (petId == null ? order.petId == null : petId.equals(order.petId)) &&
- (quantity == null ? order.quantity == null : quantity.equals(order.quantity)) &&
- (shipDate == null ? order.shipDate == null : shipDate.equals(order.shipDate)) &&
- (status == null ? order.status == null : status.equals(order.status)) &&
- (complete == null ? order.complete == null : complete.equals(order.complete));
+ return (this.id == null ? order.id == null : this.id.equals(order.id)) &&
+ (this.petId == null ? order.petId == null : this.petId.equals(order.petId)) &&
+ (this.quantity == null ? order.quantity == null : this.quantity.equals(order.quantity)) &&
+ (this.shipDate == null ? order.shipDate == null : this.shipDate.equals(order.shipDate)) &&
+ (this.status == null ? order.status == null : this.status.equals(order.status)) &&
+ (this.complete == null ? order.complete == null : this.complete.equals(order.complete));
}
- @Override
+ @Override
public int hashCode() {
int result = 17;
result = 31 * result + (id == null ? 0: id.hashCode());
diff --git a/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/model/Pet.java b/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/model/Pet.java
index e471a300a313..26662c6cfd64 100644
--- a/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/model/Pet.java
+++ b/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/model/Pet.java
@@ -98,15 +98,15 @@ public class Pet {
return false;
}
Pet pet = (Pet) o;
- return (id == null ? pet.id == null : id.equals(pet.id)) &&
- (category == null ? pet.category == null : category.equals(pet.category)) &&
- (name == null ? pet.name == null : name.equals(pet.name)) &&
- (photoUrls == null ? pet.photoUrls == null : photoUrls.equals(pet.photoUrls)) &&
- (tags == null ? pet.tags == null : tags.equals(pet.tags)) &&
- (status == null ? pet.status == null : status.equals(pet.status));
+ return (this.id == null ? pet.id == null : this.id.equals(pet.id)) &&
+ (this.category == null ? pet.category == null : this.category.equals(pet.category)) &&
+ (this.name == null ? pet.name == null : this.name.equals(pet.name)) &&
+ (this.photoUrls == null ? pet.photoUrls == null : this.photoUrls.equals(pet.photoUrls)) &&
+ (this.tags == null ? pet.tags == null : this.tags.equals(pet.tags)) &&
+ (this.status == null ? pet.status == null : this.status.equals(pet.status));
}
- @Override
+ @Override
public int hashCode() {
int result = 17;
result = 31 * result + (id == null ? 0: id.hashCode());
diff --git a/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/model/Tag.java b/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/model/Tag.java
index 722e9194eb28..d6c78a74629b 100644
--- a/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/model/Tag.java
+++ b/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/model/Tag.java
@@ -43,11 +43,11 @@ public class Tag {
return false;
}
Tag tag = (Tag) o;
- return (id == null ? tag.id == null : id.equals(tag.id)) &&
- (name == null ? tag.name == null : name.equals(tag.name));
+ return (this.id == null ? tag.id == null : this.id.equals(tag.id)) &&
+ (this.name == null ? tag.name == null : this.name.equals(tag.name));
}
- @Override
+ @Override
public int hashCode() {
int result = 17;
result = 31 * result + (id == null ? 0: id.hashCode());
diff --git a/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/model/User.java b/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/model/User.java
index 4f0a64671e23..ea7018078ddb 100644
--- a/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/model/User.java
+++ b/samples/client/petstore/android/httpclient/src/main/java/io/swagger/client/model/User.java
@@ -116,17 +116,17 @@ public class User {
return false;
}
User user = (User) o;
- return (id == null ? user.id == null : id.equals(user.id)) &&
- (username == null ? user.username == null : username.equals(user.username)) &&
- (firstName == null ? user.firstName == null : firstName.equals(user.firstName)) &&
- (lastName == null ? user.lastName == null : lastName.equals(user.lastName)) &&
- (email == null ? user.email == null : email.equals(user.email)) &&
- (password == null ? user.password == null : password.equals(user.password)) &&
- (phone == null ? user.phone == null : phone.equals(user.phone)) &&
- (userStatus == null ? user.userStatus == null : userStatus.equals(user.userStatus));
+ return (this.id == null ? user.id == null : this.id.equals(user.id)) &&
+ (this.username == null ? user.username == null : this.username.equals(user.username)) &&
+ (this.firstName == null ? user.firstName == null : this.firstName.equals(user.firstName)) &&
+ (this.lastName == null ? user.lastName == null : this.lastName.equals(user.lastName)) &&
+ (this.email == null ? user.email == null : this.email.equals(user.email)) &&
+ (this.password == null ? user.password == null : this.password.equals(user.password)) &&
+ (this.phone == null ? user.phone == null : this.phone.equals(user.phone)) &&
+ (this.userStatus == null ? user.userStatus == null : this.userStatus.equals(user.userStatus));
}
- @Override
+ @Override
public int hashCode() {
int result = 17;
result = 31 * result + (id == null ? 0: id.hashCode());
diff --git a/samples/client/petstore/android/volley/docs/PetApi.md b/samples/client/petstore/android/volley/docs/PetApi.md
index f0f8ad40fbeb..7b5585e3f58a 100644
--- a/samples/client/petstore/android/volley/docs/PetApi.md
+++ b/samples/client/petstore/android/volley/docs/PetApi.md
@@ -128,7 +128,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **status** | [**List<String>**](String.md)| Status values that need to be considered for filter | [optional] [default to available]
+ **status** | [**List<String>**](String.md)| Status values that need to be considered for filter | [optional] [default to available] [enum: available, pending, sold]
### Return type
diff --git a/samples/client/petstore/android/volley/src/main/java/io/swagger/client/model/Category.java b/samples/client/petstore/android/volley/src/main/java/io/swagger/client/model/Category.java
index 58f427e55548..70342c4d4fda 100644
--- a/samples/client/petstore/android/volley/src/main/java/io/swagger/client/model/Category.java
+++ b/samples/client/petstore/android/volley/src/main/java/io/swagger/client/model/Category.java
@@ -67,8 +67,8 @@ public class Category {
return false;
}
Category category = (Category) o;
- return (id == null ? category.id == null : id.equals(category.id)) &&
- (name == null ? category.name == null : name.equals(category.name));
+ return (this.id == null ? category.id == null : this.id.equals(category.id)) &&
+ (this.name == null ? category.name == null : this.name.equals(category.name));
}
@Override
diff --git a/samples/client/petstore/android/volley/src/main/java/io/swagger/client/model/Order.java b/samples/client/petstore/android/volley/src/main/java/io/swagger/client/model/Order.java
index 07d0902d5484..dae063be65ad 100644
--- a/samples/client/petstore/android/volley/src/main/java/io/swagger/client/model/Order.java
+++ b/samples/client/petstore/android/volley/src/main/java/io/swagger/client/model/Order.java
@@ -120,12 +120,12 @@ public class Order {
return false;
}
Order order = (Order) o;
- return (id == null ? order.id == null : id.equals(order.id)) &&
- (petId == null ? order.petId == null : petId.equals(order.petId)) &&
- (quantity == null ? order.quantity == null : quantity.equals(order.quantity)) &&
- (shipDate == null ? order.shipDate == null : shipDate.equals(order.shipDate)) &&
- (status == null ? order.status == null : status.equals(order.status)) &&
- (complete == null ? order.complete == null : complete.equals(order.complete));
+ return (this.id == null ? order.id == null : this.id.equals(order.id)) &&
+ (this.petId == null ? order.petId == null : this.petId.equals(order.petId)) &&
+ (this.quantity == null ? order.quantity == null : this.quantity.equals(order.quantity)) &&
+ (this.shipDate == null ? order.shipDate == null : this.shipDate.equals(order.shipDate)) &&
+ (this.status == null ? order.status == null : this.status.equals(order.status)) &&
+ (this.complete == null ? order.complete == null : this.complete.equals(order.complete));
}
@Override
diff --git a/samples/client/petstore/android/volley/src/main/java/io/swagger/client/model/Pet.java b/samples/client/petstore/android/volley/src/main/java/io/swagger/client/model/Pet.java
index 2d3fc76f4830..dd9db9ae4c0b 100644
--- a/samples/client/petstore/android/volley/src/main/java/io/swagger/client/model/Pet.java
+++ b/samples/client/petstore/android/volley/src/main/java/io/swagger/client/model/Pet.java
@@ -122,12 +122,12 @@ public class Pet {
return false;
}
Pet pet = (Pet) o;
- return (id == null ? pet.id == null : id.equals(pet.id)) &&
- (category == null ? pet.category == null : category.equals(pet.category)) &&
- (name == null ? pet.name == null : name.equals(pet.name)) &&
- (photoUrls == null ? pet.photoUrls == null : photoUrls.equals(pet.photoUrls)) &&
- (tags == null ? pet.tags == null : tags.equals(pet.tags)) &&
- (status == null ? pet.status == null : status.equals(pet.status));
+ return (this.id == null ? pet.id == null : this.id.equals(pet.id)) &&
+ (this.category == null ? pet.category == null : this.category.equals(pet.category)) &&
+ (this.name == null ? pet.name == null : this.name.equals(pet.name)) &&
+ (this.photoUrls == null ? pet.photoUrls == null : this.photoUrls.equals(pet.photoUrls)) &&
+ (this.tags == null ? pet.tags == null : this.tags.equals(pet.tags)) &&
+ (this.status == null ? pet.status == null : this.status.equals(pet.status));
}
@Override
diff --git a/samples/client/petstore/android/volley/src/main/java/io/swagger/client/model/Tag.java b/samples/client/petstore/android/volley/src/main/java/io/swagger/client/model/Tag.java
index a65f1968f636..92401c61c395 100644
--- a/samples/client/petstore/android/volley/src/main/java/io/swagger/client/model/Tag.java
+++ b/samples/client/petstore/android/volley/src/main/java/io/swagger/client/model/Tag.java
@@ -67,8 +67,8 @@ public class Tag {
return false;
}
Tag tag = (Tag) o;
- return (id == null ? tag.id == null : id.equals(tag.id)) &&
- (name == null ? tag.name == null : name.equals(tag.name));
+ return (this.id == null ? tag.id == null : this.id.equals(tag.id)) &&
+ (this.name == null ? tag.name == null : this.name.equals(tag.name));
}
@Override
diff --git a/samples/client/petstore/android/volley/src/main/java/io/swagger/client/model/User.java b/samples/client/petstore/android/volley/src/main/java/io/swagger/client/model/User.java
index 5b3ad5c44c4b..2e24880b4568 100644
--- a/samples/client/petstore/android/volley/src/main/java/io/swagger/client/model/User.java
+++ b/samples/client/petstore/android/volley/src/main/java/io/swagger/client/model/User.java
@@ -140,14 +140,14 @@ public class User {
return false;
}
User user = (User) o;
- return (id == null ? user.id == null : id.equals(user.id)) &&
- (username == null ? user.username == null : username.equals(user.username)) &&
- (firstName == null ? user.firstName == null : firstName.equals(user.firstName)) &&
- (lastName == null ? user.lastName == null : lastName.equals(user.lastName)) &&
- (email == null ? user.email == null : email.equals(user.email)) &&
- (password == null ? user.password == null : password.equals(user.password)) &&
- (phone == null ? user.phone == null : phone.equals(user.phone)) &&
- (userStatus == null ? user.userStatus == null : userStatus.equals(user.userStatus));
+ return (this.id == null ? user.id == null : this.id.equals(user.id)) &&
+ (this.username == null ? user.username == null : this.username.equals(user.username)) &&
+ (this.firstName == null ? user.firstName == null : this.firstName.equals(user.firstName)) &&
+ (this.lastName == null ? user.lastName == null : this.lastName.equals(user.lastName)) &&
+ (this.email == null ? user.email == null : this.email.equals(user.email)) &&
+ (this.password == null ? user.password == null : this.password.equals(user.password)) &&
+ (this.phone == null ? user.phone == null : this.phone.equals(user.phone)) &&
+ (this.userStatus == null ? user.userStatus == null : this.userStatus.equals(user.userStatus));
}
@Override