1.1 --- a/src/share/classes/com/sun/tools/javac/file/ZipFileIndexArchive.java Mon Jan 10 14:57:59 2011 -0800 1.2 +++ b/src/share/classes/com/sun/tools/javac/file/ZipFileIndexArchive.java Mon Jan 10 15:08:31 2011 -0800 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2005, 2009, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -42,6 +42,7 @@ 1.11 import com.sun.tools.javac.file.JavacFileManager.Archive; 1.12 import com.sun.tools.javac.file.RelativePath.RelativeDirectory; 1.13 import com.sun.tools.javac.file.RelativePath.RelativeFile; 1.14 +import com.sun.tools.javac.util.Assert; 1.15 import com.sun.tools.javac.util.List; 1.16 1.17 /** 1.18 @@ -146,7 +147,7 @@ 1.19 @Override 1.20 public InputStream openInputStream() throws IOException { 1.21 if (inputStream == null) { 1.22 - assert entry != null; // see constructor 1.23 + Assert.checkNonNull(entry); // see constructor 1.24 inputStream = new ByteArrayInputStream(zfIndex.read(entry)); 1.25 } 1.26 return inputStream;