src/share/classes/javax/swing/colorchooser/ValueFormatter.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 2014, 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
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -36,10 +36,11 @@
 import javax.swing.text.AttributeSet;
 import javax.swing.text.BadLocationException;
 import javax.swing.text.DefaultFormatterFactory;
 import javax.swing.text.DocumentFilter;
 
+@SuppressWarnings("serial") // Same-version serialization only
 final class ValueFormatter extends AbstractFormatter implements FocusListener, Runnable {
 
     static void init(int length, boolean hex, JFormattedTextField text) {
         ValueFormatter formatter = new ValueFormatter(length, hex);
         text.setColumns(length);