-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrorprone_issues.json
More file actions
152 lines (152 loc) · 11.5 KB
/
Copy patherrorprone_issues.json
File metadata and controls
152 lines (152 loc) · 11.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
{
"issues": [
{
"severity": "HIGH",
"file_path": "C:/Users/oleksandr.chulkin/Documents/repo/modfac/src/main/java/com/example/modfac/service/EmployeeService.java",
"main_line": 31,
"rule": "MutablePublicArray",
"message": "Non-empty arrays are mutable, so this `public static final` array is not a constant and can be modified by clients of this class. Prefer an ImmutableList, or provide an accessor method that returns a defensive copy.\n (see https://errorprone.info/bugpattern/MutablePublicArray)"
},
{
"severity": "HIGH",
"file_path": "C:/Users/oleksandr.chulkin/Documents/repo/modfac/src/main/java/com/example/modfac/service/EmployeeService.java",
"main_line": 32,
"rule": "MutablePublicArray",
"message": "Non-empty arrays are mutable, so this `public static final` array is not a constant and can be modified by clients of this class. Prefer an ImmutableList, or provide an accessor method that returns a defensive copy.\n (see https://errorprone.info/bugpattern/MutablePublicArray)"
},
{
"severity": "HIGH",
"file_path": "C:/Users/oleksandr.chulkin/Documents/repo/modfac/src/main/java/com/example/modfac/service/EmployeeService.java",
"main_line": 33,
"rule": "MutablePublicArray",
"message": "Non-empty arrays are mutable, so this `public static final` array is not a constant and can be modified by clients of this class. Prefer an ImmutableList, or provide an accessor method that returns a defensive copy.\n (see https://errorprone.info/bugpattern/MutablePublicArray)"
},
{
"severity": "HIGH",
"file_path": "C:/Users/oleksandr.chulkin/Documents/repo/modfac/src/main/java/com/example/modfac/service/EmployeeService.java",
"main_line": 34,
"rule": "MutablePublicArray",
"message": "Non-empty arrays are mutable, so this `public static final` array is not a constant and can be modified by clients of this class. Prefer an ImmutableList, or provide an accessor method that returns a defensive copy.\n (see https://errorprone.info/bugpattern/MutablePublicArray)"
},
{
"severity": "HIGH",
"file_path": "C:/Users/oleksandr.chulkin/Documents/repo/modfac/src/main/java/com/example/modfac/service/EmployeeService.java",
"main_line": 35,
"rule": "MutablePublicArray",
"message": "Non-empty arrays are mutable, so this `public static final` array is not a constant and can be modified by clients of this class. Prefer an ImmutableList, or provide an accessor method that returns a defensive copy.\n (see https://errorprone.info/bugpattern/MutablePublicArray)"
},
{
"severity": "HIGH",
"file_path": "C:/Users/oleksandr.chulkin/Documents/repo/modfac/src/main/java/com/example/modfac/service/EmployeeService.java",
"main_line": 164,
"rule": "StringCaseLocaleUsage",
"message": "Specify a `Locale` when calling `String#to{Lower,Upper}Case`. (Note: there are multiple suggested fixes; the third may be most appropriate if you're dealing with ASCII Strings.)\n (see https://errorprone.info/bugpattern/StringCaseLocaleUsage)\n Did you mean 'employee.getFirstName().toLowerCase(Locale.ROOT) + \".\" + employee.getLastName().toLowerCase() + \"@em.com\");' or 'employee.getFirstName().toLowerCase(Locale.getDefault()) + \".\" + employee.getLastName().toLowerCase() + \"@em.com\");' or 'Ascii.toLowerCase(employee.getFirstName()) + \".\" + employee.getLastName().toLowerCase() + \"@em.com\");'?"
},
{
"severity": "HIGH",
"file_path": "C:/Users/oleksandr.chulkin/Documents/repo/modfac/src/main/java/com/example/modfac/service/EmployeeService.java",
"main_line": 164,
"rule": "StringCaseLocaleUsage",
"message": "Specify a `Locale` when calling `String#to{Lower,Upper}Case`. (Note: there are multiple suggested fixes; the third may be most appropriate if you're dealing with ASCII Strings.)\n (see https://errorprone.info/bugpattern/StringCaseLocaleUsage)\n Did you mean 'employee.getFirstName().toLowerCase() + \".\" + employee.getLastName().toLowerCase(Locale.ROOT) + \"@em.com\");' or 'employee.getFirstName().toLowerCase() + \".\" + employee.getLastName().toLowerCase(Locale.getDefault()) + \"@em.com\");' or 'employee.getFirstName().toLowerCase() + \".\" + Ascii.toLowerCase(employee.getLastName()) + \"@em.com\");'?"
},
{
"severity": "HIGH",
"file_path": "C:/Users/oleksandr.chulkin/Documents/repo/modfac/src/main/java/com/example/modfac/service/EmployeeService.java",
"main_line": 165,
"rule": "JavaTimeDefaultTimeZone",
"message": "LocalDate.now() is not allowed because it silently uses the system default time-zone. You must pass an explicit time-zone (e.g., ZoneId.of(\"America/Los_Angeles\")) to this method.\n (see https://errorprone.info/bugpattern/JavaTimeDefaultTimeZone)\n Did you mean 'jobInfo.setHireDate(LocalDate.now(ZoneId.systemDefault()));'?"
},
{
"severity": "HIGH",
"file_path": "C:/Users/oleksandr.chulkin/Documents/repo/modfac/src/main/java/com/example/modfac/util/LeaveUtils.java",
"main_line": 13,
"rule": "UnusedVariable",
"message": "The field 'LOGGER' is never read.\n (see https://errorprone.info/bugpattern/UnusedVariable)\n Did you mean to remove this line or 'static { org.slf4j.LoggerFactory.getLogger(LeaveUtils.class); }'?"
},
{
"severity": "HIGH",
"file_path": "C:/Users/oleksandr.chulkin/Documents/repo/modfac/src/main/java/com/example/modfac/util/LeaveUtils.java",
"main_line": 47,
"rule": "EnumOrdinal",
"message": "You should almost never invoke the Enum.ordinal() method or depend on the enum values by index.\n (see https://errorprone.info/bugpattern/EnumOrdinal)"
},
{
"severity": "HIGH",
"file_path": "C:/Users/oleksandr.chulkin/Documents/repo/modfac/src/main/java/com/example/modfac/service/LeaveService.java",
"main_line": 63,
"rule": "NonCanonicalType",
"message": "The type `AbstractMap.SimpleEntry` was referred to by the non-canonical name `EnumMap.SimpleEntry`. This may be misleading.\n (see https://errorprone.info/bugpattern/NonCanonicalType)\n Did you mean 'return new AbstractMap.SimpleEntry<>(leave, balance - leaveDays);'?"
},
{
"severity": "HIGH",
"file_path": "C:/Users/oleksandr.chulkin/Documents/repo/modfac/src/main/java/com/example/modfac/service/UserService.java",
"main_line": 183,
"rule": "StringCaseLocaleUsage",
"message": "Specify a `Locale` when calling `String#to{Lower,Upper}Case`. (Note: there are multiple suggested fixes; the third may be most appropriate if you're dealing with ASCII Strings.)\n (see https://errorprone.info/bugpattern/StringCaseLocaleUsage)\n Did you mean 'LOG.info(\"Added {}/{} {}s...\", addedCount, count, role.name().toLowerCase(Locale.ROOT));' or 'LOG.info(\"Added {}/{} {}s...\", addedCount, count, role.name().toLowerCase(Locale.getDefault()));' or 'LOG.info(\"Added {}/{} {}s...\", addedCount, count, Ascii.toLowerCase(role.name()));'?"
},
{
"severity": "HIGH",
"file_path": "C:/Users/oleksandr.chulkin/Documents/repo/modfac/src/main/java/com/example/modfac/service/UserService.java",
"main_line": 192,
"rule": "StringCaseLocaleUsage",
"message": "Specify a `Locale` when calling `String#to{Lower,Upper}Case`. (Note: there are multiple suggested fixes; the third may be most appropriate if you're dealing with ASCII Strings.)\n (see https://errorprone.info/bugpattern/StringCaseLocaleUsage)\n Did you mean 'LOG.info(\"Finished adding {}s. Added: {}, Skipped (already existed): {}\", role.name().toLowerCase(Locale.ROOT), addedCount,' or 'LOG.info(\"Finished adding {}s. Added: {}, Skipped (already existed): {}\", role.name().toLowerCase(Locale.getDefault()), addedCount,' or 'LOG.info(\"Finished adding {}s. Added: {}, Skipped (already existed): {}\", Ascii.toLowerCase(role.name()), addedCount,'?"
},
{
"severity": "HIGH",
"file_path": "C:/Users/oleksandr.chulkin/Documents/repo/modfac/src/main/java/com/example/modfac/security/JwtTokenProvider.java",
"main_line": 43,
"rule": "JavaUtilDate",
"message": "Date has a bad API that leads to bugs; prefer java.time.Instant or LocalDate.\n (see https://errorprone.info/bugpattern/JavaUtilDate)"
},
{
"severity": "HIGH",
"file_path": "C:/Users/oleksandr.chulkin/Documents/repo/modfac/src/main/java/com/example/modfac/security/JwtTokenProvider.java",
"main_line": 44,
"rule": "JavaUtilDate",
"message": "Date has a bad API that leads to bugs; prefer java.time.Instant or LocalDate.\n (see https://errorprone.info/bugpattern/JavaUtilDate)"
},
{
"severity": "HIGH",
"file_path": "C:/Users/oleksandr.chulkin/Documents/repo/modfac/src/main/java/com/example/modfac/security/JwtTokenProvider.java",
"main_line": 44,
"rule": "JavaUtilDate",
"message": "Date has a bad API that leads to bugs; prefer java.time.Instant or LocalDate.\n (see https://errorprone.info/bugpattern/JavaUtilDate)"
},
{
"severity": "HIGH",
"file_path": "C:/Users/oleksandr.chulkin/Documents/repo/modfac/src/main/java/com/example/modfac/security/JwtTokenProvider.java",
"main_line": 73,
"rule": "JavaUtilDate",
"message": "Date has a bad API that leads to bugs; prefer java.time.Instant or LocalDate.\n (see https://errorprone.info/bugpattern/JavaUtilDate)"
},
{
"severity": "HIGH",
"file_path": "C:/Users/oleksandr.chulkin/Documents/repo/modfac/src/main/java/com/example/modfac/security/JwtTokenProvider.java",
"main_line": 73,
"rule": "JavaUtilDate",
"message": "Date has a bad API that leads to bugs; prefer java.time.Instant or LocalDate.\n (see https://errorprone.info/bugpattern/JavaUtilDate)"
},
{
"severity": "HIGH",
"file_path": "C:/Users/oleksandr.chulkin/Documents/repo/modfac/src/main/java/com/example/modfac/security/JwtAuthenticationFilter.java",
"main_line": 51,
"rule": "StringCaseLocaleUsage",
"message": "Specify a `Locale` when calling `String#to{Lower,Upper}Case`. (Note: there are multiple suggested fixes; the third may be most appropriate if you're dealing with ASCII Strings.)\n (see https://errorprone.info/bugpattern/StringCaseLocaleUsage)\n Did you mean 'authorities.add(new SimpleGrantedAuthority(\"ROLE_\" + role.toUpperCase(Locale.ROOT)));' or 'authorities.add(new SimpleGrantedAuthority(\"ROLE_\" + role.toUpperCase(Locale.getDefault())));' or 'authorities.add(new SimpleGrantedAuthority(\"ROLE_\" + Ascii.toUpperCase(role)));'?"
},
{
"severity": "HIGH",
"file_path": "C:/Users/oleksandr.chulkin/Documents/repo/modfac/src/main/java/com/example/modfac/controller/EmployeeController.java",
"main_line": 26,
"rule": "UnusedVariable",
"message": "The field 'APPLICATION_LOGGER' is never read.\n (see https://errorprone.info/bugpattern/UnusedVariable)\n Did you mean to remove this line or 'static { org.slf4j.LoggerFactory.getLogger(EmployeeController.class); }'?"
},
{
"severity": "HIGH",
"file_path": "C:/Users/oleksandr.chulkin/Documents/repo/modfac/src/main/java/com/example/modfac/security/CustomUserDetailsService.java",
"main_line": 18,
"rule": "UnusedVariable",
"message": "The field 'LOGGER' is never read.\n (see https://errorprone.info/bugpattern/UnusedVariable)\n Did you mean to remove this line or 'static { org.slf4j.LoggerFactory.getLogger(CustomUserDetailsService.class); }'?"
}
],
"finished_at": "2025-11-04T15:59:56+02:00"
}