Skip to content

Commit

Permalink
Remove unnecessary 'super's (realm#4247)
Browse files Browse the repository at this point in the history
Since this.addListener doesn't exist, 'super.' is not needed.
  • Loading branch information
dalinaum authored and zaki50 committed Feb 28, 2017
1 parent d9dc2ae commit 7438b4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public RealmQuery<DynamicRealmObject> where(String className) {
* @see #removeAllChangeListeners()
*/
public void addChangeListener(RealmChangeListener<DynamicRealm> listener) {
super.addListener(listener);
addListener(listener);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion realm/realm-library/src/main/java/io/realm/Realm.java
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,7 @@ public <E extends RealmModel> RealmQuery<E> where(Class<E> clazz) {
* @see #removeAllChangeListeners()
*/
public void addChangeListener(RealmChangeListener<Realm> listener) {
super.addListener(listener);
addListener(listener);
}

/**
Expand Down

0 comments on commit 7438b4d

Please sign in to comment.