File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
opengrok-indexer/src/main/java/org/opengrok/indexer/index Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -1666,14 +1666,13 @@ public int hashCode() {
1666
1666
return hash ;
1667
1667
}
1668
1668
1669
- private class CountingWriter extends Writer {
1669
+ private static class CountingWriter extends Writer {
1670
1670
private long count ;
1671
- private Writer out ;
1671
+ private final Writer out ;
1672
1672
1673
1673
CountingWriter (Writer out ) {
1674
1674
super (out );
1675
1675
this .out = out ;
1676
- this .count = 0 ;
1677
1676
}
1678
1677
1679
1678
@ Override
@@ -1721,8 +1720,8 @@ private String getXrefPath(String path) {
1721
1720
*/
1722
1721
private CountingWriter newXrefWriter (String path , File transientXref , boolean compressed ) throws IOException {
1723
1722
return new CountingWriter (new BufferedWriter (new OutputStreamWriter (compressed ?
1724
- new GZIPOutputStream (new FileOutputStream (transientXref )) :
1725
- new FileOutputStream (transientXref ))));
1723
+ new GZIPOutputStream (new FileOutputStream (transientXref )) :
1724
+ new FileOutputStream (transientXref ))));
1726
1725
}
1727
1726
1728
1727
LockFactory pickLockFactory (RuntimeEnvironment env ) {
You can’t perform that action at this time.
0 commit comments