You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-java/jisp/files/jisp-2.5.1-java15.patch

47 lines
1.8 KiB

diff -ru jisp-2.5.1/com/coyotegulch/jisp/SerialObjectOutputStream.java jisp-2.5.1-patched/com/coyotegulch/jisp/SerialObjectOutputStream.java
--- jisp-2.5.1/com/coyotegulch/jisp/SerialObjectOutputStream.java 2003-03-27 13:02:19.000000000 -0500
+++ jisp-2.5.1-patched/com/coyotegulch/jisp/SerialObjectOutputStream.java 2005-11-06 15:24:33.000000000 -0500
@@ -83,11 +83,11 @@
// Check if we have a list of m_buffers
if (m_buffers != null)
{
- Iterator enum = m_buffers.iterator();
+ Iterator i = m_buffers.iterator();
- while (enum.hasNext())
+ while (i.hasNext())
{
- byte[] bytes = (byte[]) enum.next();
+ byte[] bytes = (byte[]) i.next();
out.write(bytes, 0, m_blockSize);
}
}
@@ -101,10 +101,10 @@
// Check if we have a list of m_buffers
if (m_buffers != null)
{
- Iterator enum = m_buffers.iterator();
- while (enum.hasNext())
+ Iterator i = m_buffers.iterator();
+ while (i.hasNext())
{
- byte[] bytes = (byte[]) enum.next();
+ byte[] bytes = (byte[]) i.next();
out.write(bytes, 0, m_blockSize);
}
}
@@ -126,10 +126,10 @@
int pos = 0;
if (m_buffers != null)
{
- Iterator enum = m_buffers.iterator();
- while (enum.hasNext())
+ Iterator i = m_buffers.iterator();
+ while (i.hasNext())
{
- byte[] bytes = (byte[]) enum.next();
+ byte[] bytes = (byte[]) i.next();
System.arraycopy(bytes,0,data,pos,m_blockSize);
pos+=m_blockSize;
}