Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed formatting
  • Loading branch information
gregw committed Dec 19, 2018
1 parent 01d49a2 commit fee08c5
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions src/main/java/javax/servlet/ServletOutputStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* This is an abstract class that the servlet container implements. Subclasses of this class must implement the
* <code>java.io.OutputStream.write(int)</code> method.
*
*
*
* @author Various
*
* @see ServletResponse
Expand Down Expand Up @@ -81,7 +81,7 @@ public void print(String s) throws IOException {
errMsg = MessageFormat.format(errMsg, errArgs);
throw new CharConversionException(errMsg);
}
out[i]=(byte)(0xff & c);
out[i] = (byte) (0xff & c);
}
write(out,0,len);
}
Expand All @@ -95,13 +95,7 @@ public void print(String s) throws IOException {
*
*/
public void print(boolean b) throws IOException {
String msg;
if (b) {
msg = lStrings.getString("value.true");
} else {
msg = lStrings.getString("value.false");
}
print(msg);
print(lStrings.getString(b ? "value.true" : "value.false"));
}

/**
Expand Down Expand Up @@ -130,13 +124,13 @@ public void print(int i) throws IOException {
}

/**
*
*
* Writes a <code>long</code> value to the client, with no carriage return-line feed (CRLF) at the end.
*
* @param l the <code>long</code> value to send to the client
*
* @exception IOException if an input or output exception occurred
*
*
*/
public void print(long l) throws IOException {
print(String.valueOf(l));
Expand All @@ -159,7 +153,7 @@ public void print(float f) throws IOException {
/**
*
* Writes a <code>double</code> value to the client, with no carriage return-line feed (CRLF) at the end.
*
*
* @param d the <code>double</code> value to send to the client
*
* @exception IOException if an input or output exception occurred
Expand Down Expand Up @@ -191,7 +185,7 @@ public void println() throws IOException {
*
*/
public void println(String s) throws IOException {
print(s==null?"null\r\n":(s+"\r\n"));
print(s == null ? "null\r\n" : (s + "\r\n"));
}

/**
Expand Down

0 comments on commit fee08c5

Please sign in to comment.