This is an automated email from the ASF dual-hosted git repository.
mklaehn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push:
new 780396a [NETBEANS-3455] Fixed compiler warnings concerning rawtypes
SoftReference
780396a is described below
commit 780396a1df4d3a5018e0eee6f571e52ea830eb63
Author: Martin Klähn <[email protected]>
AuthorDate: Tue Nov 26 00:14:58 2019 +0100
[NETBEANS-3455] Fixed compiler warnings concerning rawtypes SoftReference
---
.../src/org/netbeans/modules/javascript2/model/api/Index.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/webcommon/javascript2.model/src/org/netbeans/modules/javascript2/model/api/Index.java
b/webcommon/javascript2.model/src/org/netbeans/modules/javascript2/model/api/Index.java
index 1acd3a9..f24b7d5 100644
---
a/webcommon/javascript2.model/src/org/netbeans/modules/javascript2/model/api/Index.java
+++
b/webcommon/javascript2.model/src/org/netbeans/modules/javascript2/model/api/Index.java
@@ -210,9 +210,9 @@ public final class Index {
value = new CacheValue(fieldsToLoad, result);
if ((result.size() * AVERAGE_BASIC_INFO_SIZE) <
MAX_CACHE_VALUE_SIZE) {
- CACHE_INDEX_RESULT_SMALL.put(key, new
SoftReference(value));
+ CACHE_INDEX_RESULT_SMALL.put(key, new
SoftReference<>(value));
} else {
- CACHE_INDEX_RESULT_LARGE.put(key, new
SoftReference(value));
+ CACHE_INDEX_RESULT_LARGE.put(key, new
SoftReference<>(value));
}
logStats(result, false, fieldsToLoad);
return value.getResult();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists