• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ben-manes / caffeine / #5173

29 Dec 2025 05:27AM UTC coverage: 0.0% (-100.0%) from 100.0%
#5173

push

github

ben-manes
speed up development ci build

0 of 3838 branches covered (0.0%)

0 of 7869 relevant lines covered (0.0%)

0.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/jcache/src/main/java/com/github/benmanes/caffeine/jcache/EntryProxy.java
1
/*
2
 * Copyright 2015 Ben Manes. All Rights Reserved.
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *     http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16
package com.github.benmanes.caffeine.jcache;
17

18
import java.util.AbstractMap.SimpleImmutableEntry;
19

20
import javax.cache.Cache;
21

22
/**
23
 * An implementation of JSR-107 {@link javax.cache.Cache.Entry}.
24
 *
25
 * @author ben.manes@gmail.com (Ben Manes)
26
 */
27
public final class EntryProxy<K, V> extends SimpleImmutableEntry<K, V>
28
    implements Cache.Entry<K, V> {
29
  private static final long serialVersionUID = 1L;
30

31
  EntryProxy(K key, V value) {
32
    super(key, value);
×
33
  }
×
34

35
  @Override
36
  public <T> T unwrap(Class<T> clazz) {
37
    if (!clazz.isInstance(this)) {
×
38
      throw new IllegalArgumentException("Class " + clazz + " is unknown to this implementation");
×
39
    }
40
    @SuppressWarnings("unchecked")
41
    var castedEntry = (T) this;
×
42
    return castedEntry;
×
43
  }
44
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc