Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit d5401f5

Browse files
Sam1301kunall17
authored andcommitted
Rename EventsBranch variable in ZulipApp.buildGson().
1 parent f01993a commit d5401f5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/src/main/java/com/zulip/android/ZulipApp.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,9 @@ public EventsBranch deserialize(JsonElement json, Type typeOfT, JsonDeserializat
289289
if (BuildConfig.DEBUG) {
290290
Log.d("RAW EVENTS", json.toString());
291291
}
292-
Class<? extends EventsBranch> t = EventsBranch.BranchType.fromRawType(invalid);
293-
if (t != null) {
294-
if (t.getSimpleName().equalsIgnoreCase("SubscriptionWrapper")) {
292+
Class<? extends EventsBranch> event = EventsBranch.BranchType.fromRawType(invalid);
293+
if (event != null) {
294+
if (event.getSimpleName().equalsIgnoreCase("SubscriptionWrapper")) {
295295
// check operation
296296
if (SubscriptionWrapper.OPERATION_ADD.equalsIgnoreCase(json.getAsJsonObject().get("op").getAsString()) ||
297297
SubscriptionWrapper.OPERATION_REMOVE.equalsIgnoreCase(json.getAsJsonObject().get("op").getAsString()) ||
@@ -303,7 +303,7 @@ public EventsBranch deserialize(JsonElement json, Type typeOfT, JsonDeserializat
303303
return nestedGson.fromJson(json, type);
304304
}
305305
}
306-
return nestedGson.fromJson(json, t);
306+
return nestedGson.fromJson(json, event);
307307
}
308308
Log.w("GSON", "Attempted to deserialize and unregistered EventBranch... See EventBranch.BranchType");
309309
return invalid;

0 commit comments

Comments
 (0)