File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
java/ql/test/query-tests/UselessMembersOfTheRecordsClass Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -4,28 +4,28 @@ public class Test {
4
4
record T1 () implements Serializable {
5
5
6
6
@ Serial
7
- private static final ObjectStreamField [] serialPersistentFields = new ObjectStreamField [0 ]; // NON_COMPLIANT
7
+ private static final ObjectStreamField [] serialPersistentFields = new ObjectStreamField [0 ]; // $ Alert
8
8
9
9
@ Serial
10
- private void writeObject (ObjectOutputStream out ) throws IOException {} // NON_COMPLIANT
10
+ private void writeObject (ObjectOutputStream out ) throws IOException {} // $ Alert
11
11
12
12
@ Serial
13
- private void readObject (ObjectOutputStream out ) throws IOException {}// NON_COMPLIANT
13
+ private void readObject (ObjectOutputStream out ) throws IOException {} // $ Alert
14
14
15
15
@ Serial
16
- private void readObjectNoData (ObjectOutputStream out ) throws IOException { // NON_COMPLIANT
16
+ private void readObjectNoData (ObjectOutputStream out ) throws IOException { // $ Alert
17
17
}
18
18
19
19
}
20
20
21
21
record T2 () implements Externalizable {
22
22
23
23
@ Override
24
- public void writeExternal (ObjectOutput out ) throws IOException { // NON_COMPLIANT
24
+ public void writeExternal (ObjectOutput out ) throws IOException { // $ Alert
25
25
}
26
26
27
27
@ Override
28
- public void readExternal (ObjectInput in ) throws IOException , ClassNotFoundException { // NON_COMPLIANT
28
+ public void readExternal (ObjectInput in ) throws IOException , ClassNotFoundException { // $ Alert
29
29
}
30
30
31
31
}
Original file line number Diff line number Diff line change 1
- Violations of Best Practice/Records/UselessMembersOfTheRecordsClass.ql
1
+ query: Violations of Best Practice/Records/UselessMembersOfTheRecordsClass.ql
2
+ postprocess: utils/test/InlineExpectationsTestQuery.ql
You can’t perform that action at this time.
0 commit comments