[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-2d-dev
Subject:    Re: [OpenJDK 2D-Dev] RFR: 6573239: Typo in jfc text file
From:       Philip Race <philip.race () oracle ! com>
Date:       2019-06-07 2:08:51
Message-ID: 5CF9C733.3060307 () oracle ! com
[Download RAW message or body]

1) I think this should be sent to the swing list, swing-dev since these
are swing demos AND there's a change in Swing product code.

2) Please *subscribe* to the lists before posting, else your mail will 
be blocked

3) Please sign and return the OCA to make contributions.
These changes are trivial enough that probably isn't needed if this is  
one-off, but
(a) it does touch a good number of places, and
(b)  your contributions before signing it DO NOT COUNT towards anything 
... so you may not get credit.

-phil.

On 6/6/19, 12:46 PM, Andrey Turbanov wrote:
> Hello.
> I would like to contribute a small patch for bug:
> https://bugs.openjdk.java.net/browse/JDK-6573239
> Please review and sponsor.
>
>
> 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
> d538ae95ed30e4f055e6395455c57b0d23ee8e95)
> +++ src/demo/share/jfc/SwingSet2/resources/tree.txt    (date 1559849949548)
> @@ -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/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 d538ae95ed30e4f055e6395455c57b0d23ee8e95)
> +++ test/jdk/sanity/client/lib/SwingSet3/src/com/sun/swingset3/demos/tree/resources/tree.txt
>     (date 1559849949512)
> @@ -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 d538ae95ed30e4f055e6395455c57b0d23ee8e95)
> +++ test/jdk/sanity/client/lib/SwingSet3/src/com/sun/swingset3/demos/tree/TreeDemo.java
>     (date 1559849949535)
> @@ -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
> d538ae95ed30e4f055e6395455c57b0d23ee8e95)
> +++ src/demo/share/jfc/SwingSet2/TreeDemo.java    (date 1559849949524)
> @@ -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':
>
>
>
> Andrey Turbanov
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic