File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
main/java/org/apache/commons/vfs2/provider/sftp
test/java/org/apache/commons/vfs2/impl Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ private ProxyType(final String proxyType) {
5555 }
5656
5757 @ Override
58- public int compareTo (final ProxyType pType ) {
59- return proxyType .compareTo (pType .proxyType );
58+ public int compareTo (final ProxyType other ) {
59+ return proxyType .compareTo (other .proxyType );
6060 }
6161
6262 @ Override
Original file line number Diff line number Diff line change @@ -281,14 +281,14 @@ public void testThreadSafety() throws Exception {
281281 if (!exceptions .isEmpty ()) {
282282 final StringBuilder exceptionMsg = new StringBuilder ();
283283 final StringBuilderWriter writer = new StringBuilderWriter (exceptionMsg );
284- final PrintWriter pWriter = new PrintWriter (writer );
284+ final PrintWriter printWriter = new PrintWriter (writer );
285285 for (final Throwable t : exceptions ) {
286- pWriter .write (t .getMessage ());
287- pWriter .write ('\n' );
288- t .printStackTrace (pWriter );
289- pWriter .write ('\n' );
286+ printWriter .write (t .getMessage ());
287+ printWriter .write ('\n' );
288+ t .printStackTrace (printWriter );
289+ printWriter .write ('\n' );
290290 }
291- pWriter .flush ();
291+ printWriter .flush ();
292292 assertTrue (exceptions .size () + " threads failed: " + exceptionMsg , exceptions .isEmpty ());
293293 }
294294 }
You can’t perform that action at this time.
0 commit comments