<Swing Dev> RFR: 6573239: Typo in jfc text file

Andrey Turbanov turbanoff at gmail.com
Tue Jun 18 20:36:53 UTC 2019


>It looks like in one place the comma is missing after the 2019 year.
You are right. Fixed.


https://bugs.openjdk.java.net/browse/JDK-6573239


Index: test/jdk/sanity/client/lib/SwingSet3/src/com/sun/swingset3/demos/tree/resources/tree.txt
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- test/jdk/sanity/client/lib/SwingSet3/src/com/sun/swingset3/demos/tree/resources/tree.txt
   (revision c80eb5ffe8a3c6db35b96849455bda7abcef1c0b)
+++ test/jdk/sanity/client/lib/SwingSet3/src/com/sun/swingset3/demos/tree/resources/tree.txt
   (date 1560889924193)
@@ -8,7 +8,7 @@
 # A = Artist    / Composer
         #
 # R = Record    / Style
         #
 # S = Song Name / Composition
         #
-# C = Catagory
         #
+# C = Category
         #
 #
         #
 ################################################################################
 C Classical
Index: src/demo/share/jfc/SwingSet2/resources/tree.txt
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/demo/share/jfc/SwingSet2/resources/tree.txt    (revision
c80eb5ffe8a3c6db35b96849455bda7abcef1c0b)
+++ src/demo/share/jfc/SwingSet2/resources/tree.txt    (date 1560889924154)
@@ -8,7 +8,7 @@
 # A = Artist    / Composer
         #
 # R = Record    / Style
         #
 # S = Song Name / Composition
         #
-# C = Catagory
         #
+# C = Category
         #
 #
         #
 ################################################################################
 C Classical
Index: test/jdk/sanity/client/lib/SwingSet3/src/com/sun/swingset3/demos/tree/TreeDemo.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- test/jdk/sanity/client/lib/SwingSet3/src/com/sun/swingset3/demos/tree/TreeDemo.java
   (revision c80eb5ffe8a3c6db35b96849455bda7abcef1c0b)
+++ test/jdk/sanity/client/lib/SwingSet3/src/com/sun/swingset3/demos/tree/TreeDemo.java
   (date 1560889924192)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2019, 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
@@ -83,7 +83,7 @@

     private JTree createTree() {
         DefaultMutableTreeNode top = new
DefaultMutableTreeNode(resourceManager.getString("TreeDemo.music"));
-        DefaultMutableTreeNode catagory = null;
+        DefaultMutableTreeNode category = null;
         DefaultMutableTreeNode artist = null;
         DefaultMutableTreeNode record = null;

@@ -103,12 +103,12 @@
                 char linetype = line.charAt(0);
                 switch (linetype) {
                     case 'C':
-                        catagory = new
DefaultMutableTreeNode(line.substring(2));
-                        top.add(catagory);
+                        category = new
DefaultMutableTreeNode(line.substring(2));
+                        top.add(category);
                         break;
                     case 'A':
-                        if (catagory != null) {
-                            catagory.add(artist = new
DefaultMutableTreeNode(line.substring(2)));
+                        if (category != null) {
+                            category.add(artist = new
DefaultMutableTreeNode(line.substring(2)));
                         }
                         break;
                     case 'R':
Index: src/demo/share/jfc/SwingSet2/TreeDemo.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/demo/share/jfc/SwingSet2/TreeDemo.java    (revision
c80eb5ffe8a3c6db35b96849455bda7abcef1c0b)
+++ src/demo/share/jfc/SwingSet2/TreeDemo.java    (date 1560889969724)
@@ -1,6 +1,6 @@
 /*
  *
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2019, Oracle and/or its affiliates. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -74,7 +74,7 @@

     public JScrollPane createTree() {
         DefaultMutableTreeNode top = new
DefaultMutableTreeNode(getString("TreeDemo.music"));
-        DefaultMutableTreeNode catagory = null ;
+        DefaultMutableTreeNode category = null;
         DefaultMutableTreeNode artist = null;
         DefaultMutableTreeNode record = null;

@@ -94,12 +94,12 @@
                 char linetype = line.charAt(0);
                 switch(linetype) {
                    case 'C':
-                     catagory = new DefaultMutableTreeNode(line.substring(2));
-                     top.add(catagory);
+                     category = new DefaultMutableTreeNode(line.substring(2));
+                     top.add(category);
                      break;
                    case 'A':
-                     if(catagory != null) {
-                         catagory.add(artist = new
DefaultMutableTreeNode(line.substring(2)));
+                     if(category != null) {
+                         category.add(artist = new
DefaultMutableTreeNode(line.substring(2)));
                      }
                      break;
                    case 'R':


More information about the swing-dev mailing list