We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2117119 commit 5836d86Copy full SHA for 5836d86
1 file changed
java-native/src/test/java/com/baeldung/jvmbitversion/JVMBitVersionUnitTest.java
@@ -5,7 +5,6 @@
5
import org.junit.Before;
6
import org.junit.Test;
7
8
-import com.baeldung.jvmbitversion.JVMBitVersion;
9
import com.sun.jna.Platform;
10
11
public class JVMBitVersionUnitTest {
@@ -19,9 +18,9 @@ public void setup() {
19
18
20
@Test
21
public void whenUsingSystemClass_thenOutputIsAsExpected() {
22
- if (System.getProperty("sun.arch.data.model") == "64") {
+ if ("64".equals(System.getProperty("sun.arch.data.model"))) {
23
assertEquals("64-bit", jvmVersion.getUsingSystemClass());
24
- } else if (System.getProperty("sun.arch.data.model") == "32") {
+ } else if ("32".equals(System.getProperty("sun.arch.data.model"))) {
25
assertEquals("32-bit", jvmVersion.getUsingSystemClass());
26
}
27
0 commit comments