Skip to content

Commit d08af0a

Browse files
committed
Fixed some compilation errors in an ancient Java class
1 parent 0f7a0d3 commit d08af0a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/java/com/darkprograms/speech/util/ChunkedOutputStream.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ public synchronized void flush() throws IOException
9191
}
9292

9393

94-
private Vector footerNames = new Vector();
95-
private Vector footerValues = new Vector();
94+
private Vector<String> footerNames = new Vector<String>();
95+
private Vector<String> footerValues = new Vector<String>();
9696

9797
/// Set a footer. Footers are much like HTTP headers, except that
9898
// they come at the end of the data instead of at the beginning.
@@ -169,6 +169,7 @@ public synchronized void write( byte b[], int off, int len ) throws IOException
169169
/// The only routine that actually writes to the output stream.
170170
// This is where chunking semantics are implemented.
171171
// @exception IOException if an I/O error occurred
172+
@SuppressWarnings("deprecation")
172173
private void writeBuf( byte b[], int off, int len ) throws IOException
173174
{
174175
// Write the chunk length as a hex number.

0 commit comments

Comments
 (0)