@@ -48,10 +48,12 @@ public enum Role {
4848 * Can read, query, copy or export tables in the dataset.
4949 */
5050 READER ,
51+
5152 /**
5253 * Same as {@link #READER} plus can edit or append data in the dataset.
5354 */
5455 WRITER ,
56+
5557 /**
5658 * Same as {@link #WRITER} plus can update and delete the dataset.
5759 */
@@ -61,7 +63,7 @@ public enum Role {
6163 /**
6264 * Base class for BigQuery entities that can be grant access to the dataset.
6365 */
64- public static abstract class Entity implements Serializable {
66+ public abstract static class Entity implements Serializable {
6567
6668 private static final long serialVersionUID = 8111776788607959944L ;
6769
@@ -132,14 +134,14 @@ public String domain() {
132134 }
133135
134136 @ Override
135- public boolean equals (Object o ) {
136- if (this == o ) {
137+ public boolean equals (Object obj ) {
138+ if (this == obj ) {
137139 return true ;
138140 }
139- if (o == null || getClass () != o .getClass ()) {
141+ if (obj == null || getClass () != obj .getClass ()) {
140142 return false ;
141143 }
142- Domain domainEntity = (Domain ) o ;
144+ Domain domainEntity = (Domain ) obj ;
143145 return Objects .equals (type (), domainEntity .type ())
144146 && Objects .equals (domain , domainEntity .domain ());
145147 }
@@ -196,14 +198,14 @@ public String identifier() {
196198 }
197199
198200 @ Override
199- public boolean equals (Object o ) {
200- if (this == o ) {
201+ public boolean equals (Object obj ) {
202+ if (this == obj ) {
201203 return true ;
202204 }
203- if (o == null || getClass () != o .getClass ()) {
205+ if (obj == null || getClass () != obj .getClass ()) {
204206 return false ;
205207 }
206- Group group = (Group ) o ;
208+ Group group = (Group ) obj ;
207209 return Objects .equals (type (), group .type ()) && Objects .equals (identifier , group .identifier );
208210 }
209211
@@ -288,14 +290,14 @@ public String email() {
288290 }
289291
290292 @ Override
291- public boolean equals (Object o ) {
292- if (this == o ) {
293+ public boolean equals (Object obj ) {
294+ if (this == obj ) {
293295 return true ;
294296 }
295- if (o == null || getClass () != o .getClass ()) {
297+ if (obj == null || getClass () != obj .getClass ()) {
296298 return false ;
297299 }
298- User user = (User ) o ;
300+ User user = (User ) obj ;
299301 return Objects .equals (type (), user .type ()) && Objects .equals (email , user .email );
300302 }
301303
@@ -341,14 +343,14 @@ public TableId id() {
341343 }
342344
343345 @ Override
344- public boolean equals (Object o ) {
345- if (this == o ) {
346+ public boolean equals (Object obj ) {
347+ if (this == obj ) {
346348 return true ;
347349 }
348- if (o == null || getClass () != o .getClass ()) {
350+ if (obj == null || getClass () != obj .getClass ()) {
349351 return false ;
350352 }
351- View view = (View ) o ;
353+ View view = (View ) obj ;
352354 return Objects .equals (type (), view .type ()) && Objects .equals (id , view .id );
353355 }
354356
0 commit comments