Patch: `final' helper classes
Tom Tromey
tromey@cygnus.com
Tue Apr 11 13:02:00 GMT 2000
I'm checking in this patch. It makes a few internal helper classes
`final'.
2000-04-11 Tom Tromey <tromey@cygnus.com>
* java/util/Vector.java (VectorEnumeration): Now `final'.
* java/util/Hashtable.java (HashtableEntry): Now `final'.
(HashtableEnumeration): Likewise.
* java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
* java/text/RuleBasedCollator.java (RBCElement): Now `final'.
Tom
Index: java/text/RuleBasedCollator.java
===================================================================
RCS file: /cvs/java/libgcj/libjava/java/text/RuleBasedCollator.java,v
retrieving revision 1.4
diff -u -r1.4 RuleBasedCollator.java
--- RuleBasedCollator.java 2000/03/07 19:55:27 1.4
+++ RuleBasedCollator.java 2000/04/11 17:47:49
@@ -1,6 +1,6 @@
// RuleBasedCollator.java - Concrete class for locale-based string compare.
-/* Copyright (C) 1999 Free Software Foundation
+/* Copyright (C) 1999, 2000 Free Software Foundation
This file is part of libgcj.
@@ -23,7 +23,7 @@
* Status: Believed complete and correct
*/
-class RBCElement
+final class RBCElement
{
String key;
char relation;
Index: java/util/Hashtable.java
===================================================================
RCS file: /cvs/java/libgcj/libjava/java/util/Hashtable.java,v
retrieving revision 1.3
diff -u -r1.3 Hashtable.java
--- Hashtable.java 2000/03/07 19:55:27 1.3
+++ Hashtable.java 2000/04/11 17:47:50
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998, 1999 Free Software Foundation
+/* Copyright (C) 1998, 1999, 2000 Free Software Foundation
This file is part of libgcj.
@@ -20,7 +20,7 @@
* Status: Believed complete and correct
*/
-class HashtableEntry
+final class HashtableEntry
{
public Object key;
public Object value;
@@ -33,7 +33,7 @@
}
}
-class HashtableEnumeration implements Enumeration
+final class HashtableEnumeration implements Enumeration
{
// TBD: Enumeration is not safe if new elements are put in the table as
// this could cause a rehash and we'd completely lose our place. Even
Index: java/util/Vector.java
===================================================================
RCS file: /cvs/java/libgcj/libjava/java/util/Vector.java,v
retrieving revision 1.4
diff -u -r1.4 Vector.java
--- Vector.java 2000/04/09 01:26:20 1.4
+++ Vector.java 2000/04/11 17:47:50
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998, 1999 Free Software Foundation
+/* Copyright (C) 1998, 1999, 2000 Free Software Foundation
This file is part of libgcj.
@@ -20,7 +20,7 @@
* Status: Believed complete and correct
*/
-class VectorEnumeration implements Enumeration
+final class VectorEnumeration implements Enumeration
{
private int enumIndex;
private Vector enumVec;
Index: java/util/zip/ZipFile.java
===================================================================
RCS file: /cvs/java/libgcj/libjava/java/util/zip/ZipFile.java,v
retrieving revision 1.7
diff -u -r1.7 ZipFile.java
--- ZipFile.java 2000/03/07 19:55:28 1.7
+++ ZipFile.java 2000/04/11 17:47:51
@@ -1,6 +1,6 @@
// ZipFile.java - Read contents of a ZIP file.
-/* Copyright (C) 1999 Free Software Foundation
+/* Copyright (C) 1999, 2000 Free Software Foundation
This file is part of libgcj.
@@ -166,7 +166,7 @@
String name;
}
-class ZipEnumeration implements java.util.Enumeration
+final class ZipEnumeration implements java.util.Enumeration
{
ZipEntry entry;
More information about the Java-patches
mailing list