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

mybatis / hazelcast-cache / 355

03 Jan 2025 10:32PM CUT coverage: 46.154%. Remained the same
355

Pull #205

github

web-flow
Update dependency org.mybatis:mybatis to v3.5.19
Pull Request #205: Update dependency org.mybatis:mybatis to v3.5.19

3 of 14 branches covered (21.43%)

24 of 52 relevant lines covered (46.15%)

0.46 hits per line

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

27.27
/src/main/java/org/mybatis/caches/hazelcast/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.hazelcast;
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
class DummyReadWriteLock implements ReadWriteLock {
1✔
27

28
  /** The lock. */
29
  private Lock lock = new DummyLock();
1✔
30

31
  @Override
32
  public Lock readLock() {
33
    return this.lock;
×
34
  }
35

36
  @Override
37
  public Lock writeLock() {
38
    return this.lock;
×
39
  }
40

41
  /**
42
   * The Class DummyLock.
43
   */
44
  static class DummyLock implements Lock {
1✔
45

46
    @Override
47
    public void lock() {
48
      // Do Nothing
49
    }
×
50

51
    @Override
52
    public void lockInterruptibly() throws InterruptedException {
53
      // Do Nothing
54
    }
×
55

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

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

66
    @Override
67
    public void unlock() {
68
      // Do Nothing
69
    }
×
70

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

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