File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/java.base/share/classes/java/security Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -429,7 +429,7 @@ public synchronized Set<Map.Entry<Object,Object>> entrySet() {
429429 * @since 1.2
430430 */
431431 @ Override
432- public Set <Object > keySet () {
432+ public synchronized Set <Object > keySet () {
433433 checkInitialized ();
434434 return Collections .unmodifiableSet (super .keySet ());
435435 }
@@ -441,7 +441,7 @@ public Set<Object> keySet() {
441441 * @since 1.2
442442 */
443443 @ Override
444- public Collection <Object > values () {
444+ public synchronized Collection <Object > values () {
445445 checkInitialized ();
446446 return Collections .unmodifiableCollection (super .values ());
447447 }
@@ -672,7 +672,8 @@ public synchronized Enumeration<Object> elements() {
672672 }
673673
674674 // let javadoc show doc from superclass
675- public String getProperty (String key ) {
675+ @ Override
676+ public synchronized String getProperty (String key ) {
676677 checkInitialized ();
677678 return super .getProperty (key );
678679 }
You can’t perform that action at this time.
0 commit comments