Skip to content

Commit

Permalink
[core] Remove @SuppressWarnings for parseContentDepthWithRoundtrip()
Browse files Browse the repository at this point in the history
Also use the most specific return type in the method's signature.
  • Loading branch information
Flowdalic committed Nov 25, 2020
1 parent ca497a2 commit 02c9058
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ public static CharSequence parseContentDepth(XmlPullParser parser, int depth)
*/
public static CharSequence parseContentDepth(XmlPullParser parser, int depth, boolean fullNamespaces) throws XmlPullParserException, IOException {
if (parser.supportsRoundtrip()) {
return parseContentDepthWithRoundtrip(parser, depth, fullNamespaces);
return parseContentDepthWithRoundtrip(parser, depth);
} else {
return parseContentDepthWithoutRoundtrip(parser, depth, fullNamespaces);
}
Expand Down Expand Up @@ -368,8 +368,7 @@ private static CharSequence parseContentDepthWithoutRoundtrip(XmlPullParser pars
return xml;
}

@SuppressWarnings("UnusedVariable")
private static CharSequence parseContentDepthWithRoundtrip(XmlPullParser parser, int depth, boolean fullNamespaces)
private static XmlStringBuilder parseContentDepthWithRoundtrip(XmlPullParser parser, int depth)
throws XmlPullParserException, IOException {
XmlStringBuilder sb = new XmlStringBuilder();
XmlPullParser.Event event = parser.getEventType();
Expand Down

0 comments on commit 02c9058

Please sign in to comment.