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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user