aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Prasanta Sadhukhan <psadhukhan@openjdk.org> 2021-03-25 04:08:07 +0000
committerGravatar Prasanta Sadhukhan <psadhukhan@openjdk.org> 2021-03-25 04:08:07 +0000
commit3fcb499ce693a79d6857397803b1e1cd994633a6 (patch)
tree7c8ac258295476dc585378f5cce7b357cfa6c370
parent415553325831b79a7e55071f6bd7c73eb1a636ec (diff)
downloadjdk-3fcb499ce693a79d6857397803b1e1cd994633a6.tar.gz
jdk-3fcb499ce693a79d6857397803b1e1cd994633a6.zip
8263768: JFormattedTextField.AbstractFormatter.getDocumentFilter()/getNavigationFilter() spec doesn't mention what the default impls return and what does it mean
Reviewed-by: trebari, aivanov, azvegint, darcy
-rw-r--r--src/java.desktop/share/classes/javax/swing/JFormattedTextField.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/java.desktop/share/classes/javax/swing/JFormattedTextField.java b/src/java.desktop/share/classes/javax/swing/JFormattedTextField.java
index 35f48457b6a..9ee465e3744 100644
--- a/src/java.desktop/share/classes/javax/swing/JFormattedTextField.java
+++ b/src/java.desktop/share/classes/javax/swing/JFormattedTextField.java
@@ -1091,6 +1091,8 @@ public class JFormattedTextField extends JTextField {
* <code>install</code> will install the returned value onto
* the <code>JFormattedTextField</code>.
*
+ * @implSpec The default implementation returns <code>null</code>.
+ *
* @return DocumentFilter to restrict edits
*/
protected DocumentFilter getDocumentFilter() {
@@ -1103,6 +1105,8 @@ public class JFormattedTextField extends JTextField {
* <code>install</code> will install the returned value onto
* the <code>JFormattedTextField</code>.
*
+ * @implSpec The default implementation returns <code>null</code>.
+ *
* @return NavigationFilter to restrict navigation
*/
protected NavigationFilter getNavigationFilter() {