From: David ‘Bombe’ Roden Date: Mon, 20 Jul 2015 20:34:56 +0000 (+0200) Subject: Remove redundant cast X-Git-Tag: 0.9.3^2~11 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=45ac9553fbf9bf618adc15614c9329e64b835d55;p=Sone.git Remove redundant cast --- diff --git a/src/main/java/net/pterodactylus/sone/text/SoneTextParser.java b/src/main/java/net/pterodactylus/sone/text/SoneTextParser.java index 7bdcf7a..a1675d7 100644 --- a/src/main/java/net/pterodactylus/sone/text/SoneTextParser.java +++ b/src/main/java/net/pterodactylus/sone/text/SoneTextParser.java @@ -278,7 +278,7 @@ public class SoneTextParser implements Parser { } for (int partIndex = parts.size() - 1; partIndex >= 0; --partIndex) { Part part = parts.getPart(partIndex); - if (!(part instanceof PlainTextPart) || !"\n".equals(((PlainTextPart) part).getText())) { + if (!(part instanceof PlainTextPart) || !"\n".equals(part.getText())) { break; } parts.removePart(partIndex);