Skip to content

Commit 97af892

Browse files
committed
Consistent formatting of code in examples
1 parent 66d21a0 commit 97af892

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/site/xdoc/description.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ limitations under the License.
5151
</p>
5252

5353
<source>
54-
InputStream in = new URL( "https://commons.apache.org" ).openStream();
54+
InputStream in = new URL("https://commons.apache.org").openStream();
5555
try {
56-
InputStreamReader inR = new InputStreamReader( in );
57-
BufferedReader buf = new BufferedReader( inR );
56+
InputStreamReader inR = new InputStreamReader(in);
57+
BufferedReader buf = new BufferedReader(inR);
5858
String line;
59-
while ( ( line = buf.readLine() ) != null ) {
60-
System.out.println( line );
59+
while ((line = buf.readLine()) != null) {
60+
System.out.println(line);
6161
}
6262
} finally {
6363
in.close();
@@ -66,9 +66,9 @@ limitations under the License.
6666
With the IOUtils class, that could be done with:
6767
</p>
6868
<source>
69-
InputStream in = new URL( "https://commons.apache.org" ).openStream();
69+
InputStream in = new URL("https://commons.apache.org").openStream();
7070
try {
71-
System.out.println( IOUtils.toString( in ) );
71+
System.out.println(IOUtils.toString(in));
7272
} finally {
7373
IOUtils.closeQuietly(in);
7474
}</source>

0 commit comments

Comments
 (0)