8013820: JavaDoc for JSpinner contains errors
authorserb
Fri, 08 May 2015 20:06:08 +0300
changeset 30922 562d748c9187
parent 30921 cb07b8856f61
child 30923 09d24256fd09
8013820: JavaDoc for JSpinner contains errors Reviewed-by: azvegint, alexsch
jdk/src/java.desktop/share/classes/javax/swing/JSpinner.java
--- a/jdk/src/java.desktop/share/classes/javax/swing/JSpinner.java	Fri May 08 19:31:09 2015 +0300
+++ b/jdk/src/java.desktop/share/classes/javax/swing/JSpinner.java	Fri May 08 20:06:08 2015 +0300
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2015, 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
@@ -42,8 +42,6 @@
 import javax.accessibility.*;
 import sun.util.locale.provider.LocaleProviderAdapter;
 import sun.util.locale.provider.LocaleResources;
-import sun.util.locale.provider.LocaleServiceProviderPool;
-
 
 /**
  * A single line input field that lets the user select a
@@ -77,12 +75,12 @@
  *   try {
  *       spinner.commitEdit();
  *   }
- *   catch (ParseException pe) {{
+ *   catch (ParseException pe) {
  *       // Edited value is invalid, spinner.getValue() will return
  *       // the last valid value, you could revert the spinner to show that:
- *       JComponent editor = spinner.getEditor()
+ *       JComponent editor = spinner.getEditor();
  *       if (editor instanceof DefaultEditor) {
- *           ((DefaultEditor)editor).getTextField().setValue(spinner.getValue();
+ *           ((DefaultEditor)editor).getTextField().setValue(spinner.getValue());
  *       }
  *       // reset the value to some known value:
  *       spinner.setValue(fallbackValue);