Revision: 971
http://japi.svn.sourceforge.net/japi/?rev=971&view=rev
Author: christianhujer
Date: 2009-02-18 06:12:04 +0000 (Wed, 18 Feb 2009)
Log Message:
-----------
Fixed checkstyle issues.
Modified Paths:
--------------
tools/jwget/trunk/src/prj/net/sf/japi/jwget/JWGet.java
Modified: tools/jwget/trunk/src/prj/net/sf/japi/jwget/JWGet.java
===================================================================
--- tools/jwget/trunk/src/prj/net/sf/japi/jwget/JWGet.java 2009-02-18 06:10:53 UTC (rev 970)
+++ tools/jwget/trunk/src/prj/net/sf/japi/jwget/JWGet.java 2009-02-18 06:12:04 UTC (rev 971)
@@ -46,6 +46,7 @@
}
/** {@inheritDoc} */
+ @SuppressWarnings({"ProhibitedExceptionDeclared"})
public int run(@NotNull final List<String> args) throws Exception {
int returnCode = 0;
if (args.size() == 0) {
@@ -64,7 +65,8 @@
log(Level.INFO, "writing", arg, outputFilename);
final OutputStream out = new FileOutputStream(outputFilename);
try {
- for (int bytesRead; (bytesRead = in.read(buf)) != -1; ) {
+ //noinspection NestedAssignment
+ for (int bytesRead; (bytesRead = in.read(buf)) != -1;) {
out.write(buf, 0, bytesRead);
}
} finally {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|