Skip to content

Commit

Permalink
Adds pmd rule BooleanGetMethodName (getodk#1451)
Browse files Browse the repository at this point in the history
  • Loading branch information
shobhitagarwal1612 authored and lognaturel committed Sep 12, 2017
1 parent bd62470 commit 5e9c6dc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2707,7 +2707,7 @@ public void savingComplete(SaveResult saveResult) {
case SaveToDiskTask.SAVED_AND_EXIT:
ToastUtils.showShortToast(R.string.data_saved_ok);
formController.getTimerLogger().logTimerEvent(TimerLogger.EventTypes.FORM_SAVE, 0, null, false, false);
if (saveResult.getComplete()) {
if (saveResult.isComplete()) {
formController.getTimerLogger().logTimerEvent(TimerLogger.EventTypes.FORM_EXIT, 0, null, false, false);
formController.getTimerLogger().logTimerEvent(TimerLogger.EventTypes.FORM_FINALIZE, 0, null, false, true); // Force writing of audit since we are exiting
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public int getSaveResult() {
return saveResult;
}

public boolean getComplete() {
public boolean isComplete() {
return complete;
}

Expand Down
1 change: 0 additions & 1 deletion config/quality/pmd/pmd-ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,5 @@
<exclude name="ShortClassName"/>
<exclude name="MethodNamingConventions"/>
<exclude name="AvoidFieldNameMatchingTypeName"/>
<exclude name="BooleanGetMethodName"/>
</rule>
</ruleset>

0 comments on commit 5e9c6dc

Please sign in to comment.