File tree 3 files changed +42
-7
lines changed
tensorflow-core/tensorflow-core-api/src
3 files changed +42
-7
lines changed Original file line number Diff line number Diff line change 17
17
*/
18
18
package org .tensorflow ;
19
19
20
- public class MRTest {
21
- public static int version () {
20
+ class MRTest {
21
+ static int version () {
22
22
return 8 ;
23
23
}
24
24
}
Original file line number Diff line number Diff line change 17
17
*/
18
18
package org .tensorflow ;
19
19
20
- import java .lang .ref .Cleaner ;
21
-
22
- public class MRTest {
23
- public static int version (){
24
- Cleaner .create ();
20
+ class MRTest {
21
+ static int version (){
25
22
return 9 ;
26
23
}
27
24
}
Original file line number Diff line number Diff line change
1
+ /*
2
+ Copyright 2021 The TensorFlow Authors. All Rights Reserved.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ =======================================================================
16
+
17
+ */
18
+ package org .tensorflow ;
19
+
20
+ import static org .junit .jupiter .api .Assertions .assertEquals ;
21
+
22
+ import org .junit .jupiter .api .Test ;
23
+
24
+ public class MultiReleaseTest {
25
+
26
+ @ Test
27
+ public void testMultirelease (){
28
+ String javaVersion = System .getProperty ("java.version" );
29
+ System .out .println ("Testing on Java version " + javaVersion );
30
+ int value = MRTest .version ();
31
+ if (javaVersion .compareTo ("9" ) >= 0 ){
32
+ assertEquals (9 , value );
33
+ } else {
34
+ assertEquals (8 , value );
35
+ }
36
+ }
37
+
38
+ }
You can’t perform that action at this time.
0 commit comments