HashSet.clone
Bryce McKinlay
bryce@albatross.co.nz
Wed Feb 14 21:11:00 GMT 2001
It is illegal to try and catch an exception that can never be thrown
from within a try block. GCJ doesn't actually detect this, but other
Java compilers complain about it, so we need to make this fix in order
to resync with classpath.
regards
[ bryce ]
Index: HashSet.java
===================================================================
RCS file: /cvs/gcc/egcs/libjava/java/util/HashSet.java,v
retrieving revision 1.2
diff -u -r1.2 HashSet.java
--- HashSet.java 2001/02/14 04:44:21 1.2
+++ HashSet.java 2001/02/15 05:09:30
@@ -129,14 +129,7 @@
public Object clone()
{
HashSet copy = new HashSet();
- try
- {
- copy.map = (HashMap) map.clone();
- }
- catch (CloneNotSupportedException ex)
- {
- }
-
+ copy.map = (HashMap) map.clone();
return copy;
}
More information about the Java-patches
mailing list