• 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/windows/auth/WindowsAccount.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.windows.auth;
8

9
import java.io.Serializable;
10

11
/**
12
 * A flattened Windows Account used in a Windows principal.
13
 */
14
public class WindowsAccount implements Serializable {
15

16
    /** The Constant serialVersionUID. */
17
    private static final long serialVersionUID = 1L;
18

19
    /** The sid string. */
20
    private final String sidString;
21

22
    /** The fqn. */
23
    private final String fqn;
24

25
    /** The name. */
26
    private final String name;
27

28
    /** The domain. */
29
    private final String domain;
30

31
    /**
32
     * Instantiates a new windows account.
33
     *
34
     * @param account
35
     *            the account
36
     */
37
    public WindowsAccount(final IWindowsAccount account) {
×
38
        this.sidString = account.getSidString();
×
39
        this.fqn = account.getFqn();
×
40
        this.name = account.getName();
×
41
        this.domain = account.getDomain();
×
42
    }
×
43

44
    /**
45
     * Gets the sid string.
46
     *
47
     * @return the sid string
48
     */
49
    public String getSidString() {
50
        return this.sidString;
×
51
    }
52

53
    /**
54
     * Gets the fqn.
55
     *
56
     * @return the fqn
57
     */
58
    public String getFqn() {
59
        return this.fqn;
×
60
    }
61

62
    /**
63
     * Gets the name.
64
     *
65
     * @return the name
66
     */
67
    public String getName() {
68
        return this.name;
×
69
    }
70

71
    /**
72
     * Gets the domain.
73
     *
74
     * @return the domain
75
     */
76
    public String getDomain() {
77
        return this.domain;
×
78
    }
79

80
    @Override
81
    public boolean equals(final Object o) {
82

83
        if (this == o) {
×
84
            return true;
×
85
        }
86

87
        if (!(o instanceof WindowsAccount)) {
×
88
            return false;
×
89
        }
90

91
        return ((WindowsAccount) o).getSidString().equals(this.getSidString());
×
92
    }
93

94
    @Override
95
    public int hashCode() {
96
        return this.getSidString().hashCode();
×
97
    }
98
}
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