Skip to content

Commit ae29054

Browse files
author
Brian Burkhalter
committedMar 3, 2023
8303175: (fs) Deprecate com.sun.nio.file.SensitivityWatchEventModifier for removal
Reviewed-by: lancea, alanb
1 parent a04b104 commit ae29054

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed
 

‎src/jdk.unsupported/share/classes/com/sun/nio/file/SensitivityWatchEventModifier.java

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -32,9 +32,18 @@
3232
* Defines the <em>sensitivity levels</em> when registering objects with a
3333
* watch service implementation that polls the file system.
3434
*
35+
* @deprecated
36+
* The sensitivity levels were historically used by polling-based
37+
* {@link java.nio.file.WatchService WatchService} implementations to configure
38+
* the polling interval. They are are no longer used. The {@code WatchService}
39+
* implementations in the JDK ignore these {@link java.nio.file.WatchEvent
40+
* WatchEvent} modifiers if they are specified when registering a directory
41+
* to be watched.
42+
*
3543
* @since 1.7
3644
*/
3745

46+
@Deprecated(since="21", forRemoval = true)
3847
public enum SensitivityWatchEventModifier implements Modifier {
3948
/**
4049
* High sensitivity.

1 commit comments

Comments
 (1)

openjdk-notifier[bot] commented on Mar 3, 2023

@openjdk-notifier[bot]
Please sign in to comment.