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

Waffle / waffle / 6364

01 Feb 2026 02:07AM UTC coverage: 46.217%. Remained the same
6364

push

github

web-flow
Merge pull request #3206 from Waffle/renovate/checkstyle.version

Update dependency com.puppycrawl.tools:checkstyle to v13.1.0

276 of 734 branches covered (37.6%)

Branch coverage included in aggregate %.

1019 of 2068 relevant lines covered (49.27%)

1.0 hits per line

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

0.0
/Source/JNA/waffle-jna/src/main/java/waffle/servlet/AutoDisposableWindowsPrincipal.java
1
/*
2
 * SPDX-License-Identifier: MIT
3
 * See LICENSE file for details.
4
 *
5
 * Copyright 2010-2026 The Waffle Project Contributors: https://github.com/Waffle/waffle/graphs/contributors
6
 */
7
package waffle.servlet;
8

9
import javax.servlet.http.HttpSessionBindingEvent;
10
import javax.servlet.http.HttpSessionBindingListener;
11

12
import waffle.windows.auth.IWindowsIdentity;
13
import waffle.windows.auth.PrincipalFormat;
14

15
/**
16
 * The Class AutoDisposableWindowsPrincipal.
17
 */
18
public class AutoDisposableWindowsPrincipal extends WindowsPrincipal implements HttpSessionBindingListener {
19

20
    /** The Constant serialVersionUID. */
21
    private static final long serialVersionUID = 1L;
22

23
    /**
24
     * Instantiates a new auto disposable windows principal.
25
     *
26
     * @param windowsIdentity
27
     *            the windows identity
28
     */
29
    public AutoDisposableWindowsPrincipal(final IWindowsIdentity windowsIdentity) {
30
        super(windowsIdentity);
×
31
    }
×
32

33
    /**
34
     * Instantiates a new auto disposable windows principal.
35
     *
36
     * @param windowsIdentity
37
     *            the windows identity
38
     * @param principalFormat
39
     *            the principal format
40
     * @param roleFormat
41
     *            the role format
42
     */
43
    public AutoDisposableWindowsPrincipal(final IWindowsIdentity windowsIdentity, final PrincipalFormat principalFormat,
44
            final PrincipalFormat roleFormat) {
45
        super(windowsIdentity, principalFormat, roleFormat);
×
46
    }
×
47

48
    @Override
49
    public void valueBound(final HttpSessionBindingEvent evt) {
50
        // Do nothing
51
    }
×
52

53
    @Override
54
    public void valueUnbound(final HttpSessionBindingEvent evt) {
55
        if (this.getIdentity() != null) {
×
56
            this.getIdentity().dispose();
×
57
        }
58
    }
×
59

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