PRED_commit_edits_2: Suppress warning about unnecessary cast

Eclipse warns about an unnecessary cast, but as mentioned in the
comment in the code, the cast is needed as a workaround for a
JDK bug [1].

Add a suppression.

[1] https://bugs.openjdk.java.net/browse/JDK-8039214

Change-Id: Ie98d39eca661bc58d7e71a5ffa88e1c579e36806
This commit is contained in:
David Pursehouse
2017-11-16 09:41:38 +09:00
parent 388c283552
commit a51af51df8

View File

@@ -98,6 +98,7 @@ public class PRED_commit_edits_2 extends Predicate.P2 {
|| (oldName != null && fileRegex.matcher(oldName).find())) {
// This cast still seems to be needed on JDK 8 as workaround for:
// https://bugs.openjdk.java.net/browse/JDK-8039214
@SuppressWarnings("cast")
List<Edit> edits = (List<Edit>) entry.getEdits();
if (edits.isEmpty()) {