fix
This commit is contained in:
parent
6d81a1cc09
commit
fdcc750eee
@ -56,7 +56,7 @@ public enum KeyUsage {
|
|||||||
|
|
||||||
|
|
||||||
public static boolean hasUsage(int nowUsage, KeyUsage usage) {
|
public static boolean hasUsage(int nowUsage, KeyUsage usage) {
|
||||||
return (nowUsage & usage.value) > 0;
|
return (nowUsage & usage.value) >= usage.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>chsm-model</artifactId>
|
<artifactId>chsm-params</artifactId>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<maven.compiler.source>8</maven.compiler.source>
|
<maven.compiler.source>8</maven.compiler.source>
|
2
pom.xml
2
pom.xml
@ -12,7 +12,7 @@
|
|||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
<modules>
|
<modules>
|
||||||
<module>chsm-web-server</module>
|
<module>chsm-web-server</module>
|
||||||
<module>chsm-model</module>
|
<module>chsm-params</module>
|
||||||
<module>chsm-web-manage</module>
|
<module>chsm-web-manage</module>
|
||||||
<module>chsm-common</module>
|
<module>chsm-common</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
Loading…
Reference in New Issue
Block a user