Skip to content

Commit

Permalink
8303175: (fs) Deprecate com.sun.nio.file.SensitivityWatchEventModifie…
Browse files Browse the repository at this point in the history
…r for removal

Reviewed-by: lancea, alanb
  • Loading branch information
Brian Burkhalter committed Mar 3, 2023
1 parent a04b104 commit ae29054
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2023, 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
Expand Down Expand Up @@ -32,9 +32,18 @@
* Defines the <em>sensitivity levels</em> when registering objects with a
* watch service implementation that polls the file system.
*
* @deprecated
* The sensitivity levels were historically used by polling-based
* {@link java.nio.file.WatchService WatchService} implementations to configure
* the polling interval. They are are no longer used. The {@code WatchService}
* implementations in the JDK ignore these {@link java.nio.file.WatchEvent
* WatchEvent} modifiers if they are specified when registering a directory
* to be watched.
*
* @since 1.7
*/

@Deprecated(since="21", forRemoval = true)
public enum SensitivityWatchEventModifier implements Modifier {
/**
* High sensitivity.
Expand Down

1 comment on commit ae29054

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.