From ca96cdaca88cad196907b5aa27e7ad678ec31d36 Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Mon, 14 Mar 2005 18:15:36 +0000 Subject: [PATCH] upcase constants git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277956 13f79535-47bb-0310-9956-ffa450edef68 --- .../ant/taskdefs/optional/splash/SplashScreen.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/splash/SplashScreen.java b/src/main/org/apache/tools/ant/taskdefs/optional/splash/SplashScreen.java index d569579c5..0795863bd 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/splash/SplashScreen.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/splash/SplashScreen.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2004 The Apache Software Foundation + * Copyright 2002-2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,8 +38,8 @@ class SplashScreen extends JWindow implements ActionListener, BuildListener { private JLabel text; private JProgressBar pb; private int total; - private static final int min = 0; - private static final int max = 200; + private static final int MIN = 0; + private static final int MAX = 200; public SplashScreen(String msg) { init(null); @@ -65,7 +65,7 @@ class SplashScreen extends JWindow implements ActionListener, BuildListener { text.setFont(new Font("Sans-Serif", Font.BOLD, 12)); text.setBorder(BorderFactory.createEtchedBorder()); - pb = new JProgressBar(min, max); + pb = new JProgressBar(MIN, MAX); pb.setBorder(BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED)); JPanel pan2 = new JPanel(); pan2.setLayout(new BorderLayout()); @@ -93,10 +93,10 @@ class SplashScreen extends JWindow implements ActionListener, BuildListener { } public void actionPerformed(ActionEvent a) { - if (total < max) { + if (total < MAX) { total++; } else { - total = min; + total = MIN; } pb.setValue(total); } @@ -106,7 +106,7 @@ class SplashScreen extends JWindow implements ActionListener, BuildListener { } public void buildFinished(BuildEvent event) { - pb.setValue(max); + pb.setValue(MAX); setVisible(false); dispose(); }