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

mybatis / ehcache-cache / #343

24 Sep 2023 01:01AM CUT coverage: 76.812%. Remained the same
#343

Pull #163

github

web-flow
Update dependency org.mybatis:mybatis-parent to v39
Pull Request #163: Update dependency org.mybatis:mybatis-parent to v39

53 of 69 relevant lines covered (76.81%)

0.77 hits per line

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

0.0
/src/main/java/org/mybatis/caches/ehcache/DummyReadWriteLock.java
1
/*
2
 *    Copyright 2010-2022 the original author or authors.
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
 *       https://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 org.mybatis.caches.ehcache;
17

18
import java.util.concurrent.TimeUnit;
19
import java.util.concurrent.locks.Condition;
20
import java.util.concurrent.locks.Lock;
21
import java.util.concurrent.locks.ReadWriteLock;
22

23
/**
24
 * The Class DummyReadWriteLock.
25
 *
26
 * @author Iwao AVE!
27
 */
28
class DummyReadWriteLock implements ReadWriteLock {
×
29

30
  /** The lock. */
31
  private Lock lock = new DummyLock();
×
32

33
  @Override
34
  public Lock readLock() {
35
    return lock;
×
36
  }
37

38
  @Override
39
  public Lock writeLock() {
40
    return lock;
×
41
  }
42

43
  /**
44
   * The Class DummyLock.
45
   */
46
  static class DummyLock implements Lock {
×
47

48
    @Override
49
    public void lock() {
50
      // Not implemented
51
    }
×
52

53
    @Override
54
    public void lockInterruptibly() throws InterruptedException {
55
      // Not implemented
56
    }
×
57

58
    @Override
59
    public boolean tryLock() {
60
      return true;
×
61
    }
62

63
    @Override
64
    public boolean tryLock(long paramLong, TimeUnit paramTimeUnit) throws InterruptedException {
65
      return true;
×
66
    }
67

68
    @Override
69
    public void unlock() {
70
      // Not implemented
71
    }
×
72

73
    @Override
74
    public Condition newCondition() {
75
      return null;
×
76
    }
77
  }
78

79
}
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

© 2025 Coveralls, Inc