
if (resourceAsStream == null) {
throw new IllegalArgumentException("resourceAsStream may not be null");</BUG>
}
<BUG>IContainer current = project;
for (int i = 0; i < fromPortableString.segmentCount() - 1; i++) {

String currentSegment = fromPortableString.segment(i);
</BUG>
IResource container = current.findMember(currentSegment);

if (!bin.exists()) { // TODO - not sure why this exists...
bin.create(true, true, new NullProgressMonitor());
}
javaProject.setOutputLocation(bin.getFullPath(), new NullProgressMonitor());
}
public void createOrUpdateFile(IPath fileLocation, InputStream contents) throws CoreException {
if (contents == null) {
throw new IllegalArgumentException("resourceAsStream may not be null");
}
IContainer current = project;
try {
for (int i = 0; i < fileLocation.segmentCount() - 1; i++) {
String currentSegment = fileLocation.segment(i);
IResource container = current.findMember(currentSegment);
