src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.replacements.test/src/org/graalvm/compiler/replacements/test/StringSubstitutionsTest.java
branchdatagramsocketimpl-branch
changeset 58678 9cf78a70fa4f
parent 54601 c40b2a190173
child 58679 9c3209ff7550
equal deleted inserted replaced
58677:13588c901957 58678:9cf78a70fa4f
     1 /*
     1 /*
     2  * Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    25 package org.graalvm.compiler.replacements.test;
    25 package org.graalvm.compiler.replacements.test;
    26 
    26 
    27 import org.graalvm.compiler.nodes.StructuredGraph;
    27 import org.graalvm.compiler.nodes.StructuredGraph;
    28 import org.graalvm.compiler.replacements.StringSubstitutions;
    28 import org.graalvm.compiler.replacements.StringSubstitutions;
    29 import org.graalvm.compiler.replacements.nodes.ArrayEqualsNode;
    29 import org.graalvm.compiler.replacements.nodes.ArrayEqualsNode;
       
    30 import org.graalvm.compiler.serviceprovider.JavaVersionUtil;
    30 import org.junit.Test;
    31 import org.junit.Test;
    31 
    32 
    32 import jdk.vm.ci.code.InstalledCode;
    33 import jdk.vm.ci.code.InstalledCode;
    33 import jdk.vm.ci.meta.ResolvedJavaMethod;
    34 import jdk.vm.ci.meta.ResolvedJavaMethod;
    34 
    35 
    63         }
    64         }
    64     }
    65     }
    65 
    66 
    66     @Test
    67     @Test
    67     public void testEquals() {
    68     public void testEquals() {
    68         if (!Java8OrEarlier) {
    69         if (JavaVersionUtil.JAVA_SPEC > 8) {
    69             // StringSubstitutions are disabled in 1.9
    70             // StringSubstitutions are disabled in 1.9
    70             return;
    71             return;
    71         }
    72         }
    72 
    73 
    73         final int n = 1000;
    74         final int n = 1000;