changeset 55549:80853c6c9136

8226976: SessionTimeOutTests uses == operator for String value check Summary: Use String.equals() instead of == operator Reviewed-by: xuelei
author jpai
date Tue, 02 Jul 2019 11:07:40 +0530
parents 1ba68bf27e27
children f1216302bdef
files test/jdk/javax/net/ssl/SSLSession/SessionTimeOutTests.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/jdk/javax/net/ssl/SSLSession/SessionTimeOutTests.java	Tue Jul 02 08:32:33 2019 -0700
+++ b/test/jdk/javax/net/ssl/SSLSession/SessionTimeOutTests.java	Tue Jul 02 11:07:40 2019 +0530
@@ -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 @@
             }
             System.out.print(sess + "      " + lifetime);
             if (((timeout == 0) || (lifetime < timeout)) &&
-                                  (isTimedout == "YES")) {
+                                  (isTimedout.equals("YES"))) {
                 isTimedout = "Invalidated before timeout";
             }