18
18
*/
19
19
20
20
/*
21
- * Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
21
+ * Copyright (c) 2021, 2025, Oracle and/or its affiliates. All rights reserved.
22
22
* Copyright (c) 2018, 2020, Chris Fraire <[email protected] >.
23
23
*/
24
24
package org .opengrok .indexer .analysis .plain ;
@@ -48,12 +48,12 @@ public class DefinitionsTokenStream extends TokenStream {
48
48
*/
49
49
private final List <PendingToken > events = new ArrayList <>();
50
50
51
- private final CharTermAttribute termAtt = addAttribute (
52
- CharTermAttribute .class );
53
- private final OffsetAttribute offsetAtt = addAttribute (
54
- OffsetAttribute .class );
55
- private final PositionIncrementAttribute posIncrAtt = addAttribute (
56
- PositionIncrementAttribute .class );
51
+ @ SuppressWarnings ( "this-escape" )
52
+ private final CharTermAttribute termAtt = addAttribute ( CharTermAttribute .class );
53
+ @ SuppressWarnings ( "this-escape" )
54
+ private final OffsetAttribute offsetAtt = addAttribute ( OffsetAttribute .class );
55
+ @ SuppressWarnings ( "this-escape" )
56
+ private final PositionIncrementAttribute posIncrAtt = addAttribute ( PositionIncrementAttribute .class );
57
57
58
58
private int offset ;
59
59
@@ -65,8 +65,7 @@ public class DefinitionsTokenStream extends TokenStream {
65
65
* @param wrapper an optional instance
66
66
* @throws IOException if I/O error occurs
67
67
*/
68
- public void initialize (Definitions defs , StreamSource src ,
69
- ReaderWrapper wrapper ) throws IOException {
68
+ public void initialize (Definitions defs , StreamSource src , ReaderWrapper wrapper ) throws IOException {
70
69
if (defs == null ) {
71
70
throw new IllegalArgumentException ("`defs' is null" );
72
71
}
0 commit comments