This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-bcel.git

commit 1a26bf24b313e820231ee0b69a0046ba09d917c4
Author: Gary David Gregory (Code signing key) <ggreg...@apache.org>
AuthorDate: Wed Nov 16 10:22:19 2022 -0500

    Refactor and update banner to Apache
---
 src/main/java/org/apache/bcel/verifier/Verifier.java         |  5 ++++-
 src/main/java/org/apache/bcel/verifier/VerifierAppFrame.java | 10 +++-------
 2 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/src/main/java/org/apache/bcel/verifier/Verifier.java 
b/src/main/java/org/apache/bcel/verifier/Verifier.java
index 66bb7c4a..84de3859 100644
--- a/src/main/java/org/apache/bcel/verifier/Verifier.java
+++ b/src/main/java/org/apache/bcel/verifier/Verifier.java
@@ -43,6 +43,9 @@ import org.apache.commons.lang3.ArrayUtils;
  */
 public class Verifier {
 
+    static final String NAME = "Apache Commons BCEL";
+    static final String BANNER = NAME + "\nhttps://commons.apache.org/bcel\n";;
+
     static final Verifier[] EMPTY_ARRAY = {};
 
     /**
@@ -52,7 +55,7 @@ public class Verifier {
      * put the classes into the BCEL Repository yourself (via 
'addClass(JavaClass)').
      */
     public static void main(final String[] args) {
-        System.out.println("JustIce by Enver Haase, (C) 
2001-2002.\n<http://bcel.sourceforge.net>\n<https://commons.apache.org/bcel>\n");
+        System.out.println(BANNER);
         for (int index = 0; index < args.length; index++) {
             try {
                 if (args[index].endsWith(JavaClass.EXTENSION)) {
diff --git a/src/main/java/org/apache/bcel/verifier/VerifierAppFrame.java 
b/src/main/java/org/apache/bcel/verifier/VerifierAppFrame.java
index 764150ec..e122a8be 100644
--- a/src/main/java/org/apache/bcel/verifier/VerifierAppFrame.java
+++ b/src/main/java/org/apache/bcel/verifier/VerifierAppFrame.java
@@ -52,8 +52,6 @@ import org.apache.commons.lang3.ArrayUtils;
 public class VerifierAppFrame extends JFrame {
 
     private static final long serialVersionUID = -542458133073307640L;
-    private static final String JUSTICE_VERSION = "JustIce by Enver Haase";
-
     private JPanel contentPane;
     private final JSplitPane jSplitPane1 = new JSplitPane();
     private final JPanel jPanel1 = new JPanel();
@@ -103,9 +101,7 @@ public class VerifierAppFrame extends JFrame {
     }
 
     void aboutMenuItem_actionPerformed(final ActionEvent e) {
-        JOptionPane.showMessageDialog(this,
-            "JustIce is a Java class file verifier.\n" + "It was implemented 
by Enver Haase in 2001, 2002.\n<https://commons.apache.org/bcel/>",
-            JUSTICE_VERSION, JOptionPane.INFORMATION_MESSAGE);
+        JOptionPane.showMessageDialog(this, Verifier.BANNER, Verifier.NAME, 
JOptionPane.INFORMATION_MESSAGE);
     }
 
     synchronized void classNamesJList_valueChanged(final ListSelectionEvent e) 
{
@@ -343,7 +339,7 @@ public class VerifierAppFrame extends JFrame {
             allmsgs.append(msgs[i]).append("\n\n");
         }
         messagesTextPane.setText(allmsgs.toString());
-        setTitle(currentClass + " - " + JUSTICE_VERSION);
+        setTitle(currentClass + " - " + Verifier.NAME);
     }
 
     void whatisMenuItem_actionPerformed(final ActionEvent e) {
@@ -352,7 +348,7 @@ public class VerifierAppFrame extends JFrame {
                 + " The Java Virtual Machine Specification.\nThese are (in 
that order):"
                 + " Pass one, Pass two, Pass three (before data flow 
analysis), Pass three (data flow analysis).\n"
                 + "The bottom box to the right shows (warning) messages; 
warnings do not cause a class to be rejected.",
-            JUSTICE_VERSION, JOptionPane.INFORMATION_MESSAGE);
+            Verifier.NAME, JOptionPane.INFORMATION_MESSAGE);
     }
 
 }

Reply via email to