File tree 2 files changed +9
-16
lines changed
weasis-base/weasis-base-explorer/src/main/java/org/weasis/base/explorer
2 files changed +9
-16
lines changed Original file line number Diff line number Diff line change 25
25
<sonar .host.url>https://sonarcloud.io</sonar .host.url>
26
26
<sonar .language>java</sonar .language>
27
27
<sonar .java.source>${java-version} </sonar .java.source>
28
- <sonar .test. exclusions>src/test/**/* </sonar .test .exclusions>
28
+ <sonar .exclusions>**/ src/test/**</sonar .exclusions>
29
29
<!-- suppress UnresolvedMavenProperty -->
30
30
<sonar .coverage.jacoco.xmlReportPaths>${maven.multiModuleProjectDirectory} /tests/target/site/jacoco-aggregate/jacoco.xml</sonar .coverage.jacoco.xmlReportPaths>
31
31
</properties >
Original file line number Diff line number Diff line change @@ -47,21 +47,14 @@ public final class JIThumbnailCache {
47
47
queue ,
48
48
ThreadUtil .getThreadFactory ("Thumbnail Cache" )); // NON-NLS
49
49
50
- private final Map <URI , ThumbnailIcon > cachedThumbnails ;
51
-
52
- public JIThumbnailCache () {
53
- this .cachedThumbnails =
54
- Collections .synchronizedMap (
55
- new LinkedHashMap <>(80 ) {
56
-
57
- private static final int MAX_ENTRIES = 100 ;
58
-
59
- @ Override
60
- protected boolean removeEldestEntry (final Map .Entry eldest ) {
61
- return size () > MAX_ENTRIES ;
62
- }
63
- });
64
- }
50
+ private final Map <URI , ThumbnailIcon > cachedThumbnails =
51
+ Collections .synchronizedMap (
52
+ new LinkedHashMap <>(80 ) {
53
+ @ Override
54
+ protected boolean removeEldestEntry (final Map .Entry eldest ) {
55
+ return size () > 100 ;
56
+ }
57
+ });
65
58
66
59
public synchronized void invalidate () {
67
60
this .cachedThumbnails .clear ();
You can’t perform that action at this time.
0 commit comments