You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlgraphics.apache.org by je...@apache.org on 2008/01/25 10:56:58 UTC
svn commit: r615163 -
/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/util/ImageUtil.java
Author: jeremias
Date: Fri Jan 25 01:56:55 2008
New Revision: 615163
URL: http://svn.apache.org/viewvc?rev=615163&view=rev
Log:
Made closeQuietly really quiet.
Modified:
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/util/ImageUtil.java
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/util/ImageUtil.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/util/ImageUtil.java?rev=615163&r1=615162&r2=615163&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/util/ImageUtil.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/util/ImageUtil.java Fri Jan 25 01:56:55 2008
@@ -140,18 +140,6 @@
}
/**
- * Removes any references to InputStreams or Readers from the given ImageInfo's Source
- * to prohibit accidental/unwanted use by a component further downstream.
- * @param info the ImageInfo object
- *//*
- public static void removeStreams(ImageInfo info) {
- //Synchronize to avoid concurrent tampering with the Source
- synchronized (info) {
- removeStreams(info.getSource());
- }
- }*/
-
- /**
* Removes any references to InputStreams or Readers from the given Source to prohibit
* accidental/unwanted use by a component further downstream.
* @param src the Source object
@@ -191,8 +179,6 @@
}
imageSource.setImageInputStream(null);
}
- } else {
- throw new IllegalArgumentException("Source not supported: " + src.getClass().getName());
}
}
---------------------------------------------------------------------
Apache XML Graphics Project URL: http://xmlgraphics.apache.org/
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org