equal
deleted
inserted
replaced
96 **/ |
96 **/ |
97 protected synchronized SnmpCachedData getTableDatas(Object context) { |
97 protected synchronized SnmpCachedData getTableDatas(Object context) { |
98 final SnmpCachedData cached = getCachedDatas(); |
98 final SnmpCachedData cached = getCachedDatas(); |
99 if (cached != null) return cached; |
99 if (cached != null) return cached; |
100 final SnmpCachedData computedDatas = updateCachedDatas(context); |
100 final SnmpCachedData computedDatas = updateCachedDatas(context); |
101 if (validity != 0) datas = new WeakReference<SnmpCachedData>(computedDatas); |
101 if (validity != 0) datas = new WeakReference<>(computedDatas); |
102 return computedDatas; |
102 return computedDatas; |
103 } |
103 } |
104 |
104 |
105 /** |
105 /** |
106 * Recompute cached data. |
106 * Recompute cached data. |