mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-11 05:59:52 +00:00
8226976: SessionTimeOutTests uses == operator for String value check
Use String.equals() instead of == operator Reviewed-by: xuelei
This commit is contained in:
parent
4833b4b3d5
commit
178bf44f56
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2001, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -283,7 +283,7 @@ public class SessionTimeOutTests {
|
||||
}
|
||||
System.out.print(sess + " " + lifetime);
|
||||
if (((timeout == 0) || (lifetime < timeout)) &&
|
||||
(isTimedout == "YES")) {
|
||||
(isTimedout.equals("YES"))) {
|
||||
isTimedout = "Invalidated before timeout";
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user