|
1 | 1 | /* |
2 | | - * Copyright 2018 Google LLC |
| 2 | + * Copyright 2019 Google LLC |
3 | 3 | * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | * you may not use this file except in compliance with the License. |
@@ -77,34 +77,34 @@ private AbandonInstancesRegionInstanceGroupManagerHttpRequest( |
77 | 77 |
|
78 | 78 | @Override |
79 | 79 | public Object getFieldValue(String fieldName) { |
80 | | - if (fieldName.equals("access_token")) { |
| 80 | + if ("access_token".equals(fieldName)) { |
81 | 81 | return access_token; |
82 | 82 | } |
83 | | - if (fieldName.equals("callback")) { |
| 83 | + if ("callback".equals(fieldName)) { |
84 | 84 | return callback; |
85 | 85 | } |
86 | | - if (fieldName.equals("fields")) { |
| 86 | + if ("fields".equals(fieldName)) { |
87 | 87 | return fields; |
88 | 88 | } |
89 | | - if (fieldName.equals("instanceGroupManager")) { |
| 89 | + if ("instanceGroupManager".equals(fieldName)) { |
90 | 90 | return instanceGroupManager; |
91 | 91 | } |
92 | | - if (fieldName.equals("key")) { |
| 92 | + if ("key".equals(fieldName)) { |
93 | 93 | return key; |
94 | 94 | } |
95 | | - if (fieldName.equals("prettyPrint")) { |
| 95 | + if ("prettyPrint".equals(fieldName)) { |
96 | 96 | return prettyPrint; |
97 | 97 | } |
98 | | - if (fieldName.equals("quotaUser")) { |
| 98 | + if ("quotaUser".equals(fieldName)) { |
99 | 99 | return quotaUser; |
100 | 100 | } |
101 | | - if (fieldName.equals("regionInstanceGroupManagersAbandonInstancesRequestResource")) { |
| 101 | + if ("regionInstanceGroupManagersAbandonInstancesRequestResource".equals(fieldName)) { |
102 | 102 | return regionInstanceGroupManagersAbandonInstancesRequestResource; |
103 | 103 | } |
104 | | - if (fieldName.equals("requestId")) { |
| 104 | + if ("requestId".equals(fieldName)) { |
105 | 105 | return requestId; |
106 | 106 | } |
107 | | - if (fieldName.equals("userIp")) { |
| 107 | + if ("userIp".equals(fieldName)) { |
108 | 108 | return userIp; |
109 | 109 | } |
110 | 110 | return null; |
|
0 commit comments