Skip to content

Commit

Permalink
Consistent formatting of code in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jan 23, 2025
1 parent 66d21a0 commit 97af892
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/site/xdoc/description.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ limitations under the License.
</p>

<source>
InputStream in = new URL( "https://commons.apache.org" ).openStream();
InputStream in = new URL("https://commons.apache.org").openStream();
try {
InputStreamReader inR = new InputStreamReader( in );
BufferedReader buf = new BufferedReader( inR );
InputStreamReader inR = new InputStreamReader(in);
BufferedReader buf = new BufferedReader(inR);
String line;
while ( ( line = buf.readLine() ) != null ) {
System.out.println( line );
while ((line = buf.readLine()) != null) {
System.out.println(line);
}
} finally {
in.close();
Expand All @@ -66,9 +66,9 @@ limitations under the License.
With the IOUtils class, that could be done with:
</p>
<source>
InputStream in = new URL( "https://commons.apache.org" ).openStream();
InputStream in = new URL("https://commons.apache.org").openStream();
try {
System.out.println( IOUtils.toString( in ) );
System.out.println(IOUtils.toString(in));
} finally {
IOUtils.closeQuietly(in);
}</source>
Expand Down

0 comments on commit 97af892

Please sign in to comment.