jdk/src/share/classes/java/util/zip/ZipOutputStream.java
changeset 1228 1515928f48cd
parent 2 90ce3da70b43
child 2438 21c111b51aa8
--- a/jdk/src/share/classes/java/util/zip/ZipOutputStream.java	Wed Sep 10 16:27:13 2008 +0200
+++ b/jdk/src/share/classes/java/util/zip/ZipOutputStream.java	Thu Sep 11 14:58:57 2008 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright 1996-2006 Sun Microsystems, Inc.  All Rights Reserved.
+ * Copyright 1996-2008 Sun Microsystems, Inc.  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
@@ -317,9 +317,6 @@
         if (current != null) {
             closeEntry();
         }
-        if (xentries.size() < 1) {
-            throw new ZipException("ZIP file must have at least one entry");
-        }
         // write central directory
         long off = written;
         for (XEntry xentry : xentries)