Skip to content

Commit e1377d2

Browse files
committed
[MINOR] Fix warnings from change to JDK 17 (security manager, strictfp)
1 parent 13611b0 commit e1377d2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/main/java/org/apache/sysds/runtime/io/hdf5/H5BufferBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public void writeLong(long l) {
9999
}
100100
}
101101

102-
public strictfp Double getNewVal(double d) {
102+
public Double getNewVal(double d) {
103103
return d;
104104
}
105105

src/test/java/org/apache/sysds/test/usertest/pythonapi/StartupTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@
3737
/** Simple tests to verify startup of Python Gateway server happens without crashes */
3838
public class StartupTest {
3939
private LoggingUtils.TestAppender appender;
40+
@SuppressWarnings("removal")
4041
private SecurityManager sm;
4142

4243
@Before
44+
@SuppressWarnings("removal")
4345
public void setUp() {
4446
appender = LoggingUtils.overwrite();
4547
sm = System.getSecurityManager();
@@ -49,6 +51,7 @@ public void setUp() {
4951
}
5052

5153
@After
54+
@SuppressWarnings("removal")
5255
public void tearDown() {
5356
LoggingUtils.reinsert(appender);
5457
System.setSecurityManager(sm);
@@ -129,6 +132,7 @@ public void testStartupCorrect() throws Exception {
129132
);
130133
}
131134

135+
@SuppressWarnings("removal")
132136
class NoExitSecurityManager extends SecurityManager {
133137
@Override
134138
public void checkPermission(Permission perm) { }

0 commit comments

Comments
 (0)