mirror of
https://github.com/openjdk/jdk.git
synced 2026-07-15 05:29:07 +00:00
8356846: Remove unnecessary List.contains key from TIFFDirectory.removeTagSet
Reviewed-by: aivanov, serb
This commit is contained in:
parent
67fb1ee7f1
commit
2fb3329d71
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2025, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -26,7 +26,6 @@ package javax.imageio.plugins.tiff;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.TreeMap;
|
||||
@ -268,9 +267,7 @@ public class TIFFDirectory implements Cloneable {
|
||||
throw new NullPointerException("tagSet == null");
|
||||
}
|
||||
|
||||
if(tagSets.contains(tagSet)) {
|
||||
tagSets.remove(tagSet);
|
||||
}
|
||||
tagSets.remove(tagSet);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user