Fix/Suppress issues for errorprone update When updating errorprone to 2.27.0, it finds new issues that cause the build to fail. Flag: EXEMPT refactor Bug: 253827323 Test: RUN_ERROR_PRONE=true m javac-check Change-Id: I1359d44c43c87c695044b1bbc9480e3fef74fb03
diff --git a/samples/HoneycombGallery/src/com/example/android/hcgallery/ContentFragment.java b/samples/HoneycombGallery/src/com/example/android/hcgallery/ContentFragment.java index b6754f9..764c0d8 100644 --- a/samples/HoneycombGallery/src/com/example/android/hcgallery/ContentFragment.java +++ b/samples/HoneycombGallery/src/com/example/android/hcgallery/ContentFragment.java
@@ -45,6 +45,7 @@ import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; +import java.util.Objects; import java.util.StringTokenizer; /** Fragment that shows the content selected from the TitlesFragment. @@ -347,7 +348,7 @@ */ @Override protected void onPostExecute(Boolean result) { - if (result != Boolean.TRUE) { + if (!Objects.equals(result, Boolean.TRUE)) { return; }