Fix some java warnings during compile

Signed-off-by: brian <brian@brutex.de>
master
Brian Rosenberger 2022-10-03 12:09:10 +02:00
parent 96c324e6ed
commit dbbd61621c
8 changed files with 19 additions and 23 deletions

View File

@ -47,7 +47,6 @@ dependencies {
api "com.google.code.gson:gson:2.8.6" api "com.google.code.gson:gson:2.8.6"
api "com.google.protobuf:protobuf-java-util:3.15.6" api "com.google.protobuf:protobuf-java-util:3.15.6"
api "com.google.flatbuffers:flatbuffers-java:${flatbuffers.version}" api "com.google.flatbuffers:flatbuffers-java:${flatbuffers.version}"
api "com.google.flatbuffers:flatbuffers-java:${flatbuffers.version}"
/* /*
api "com.fasterxml.jackson.core:jackson-core:${jackson.version}" api "com.fasterxml.jackson.core:jackson-core:${jackson.version}"

View File

@ -1,18 +1,3 @@
/*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
******************************************************************************/
package org.datavec.api.transform.transform.geo; package org.datavec.api.transform.transform.geo;

View File

@ -31,7 +31,7 @@ import java.util.List;
@Data @Data
@Slf4j @Slf4j
@NoArgsConstructor @NoArgsConstructor
@ToString(exclude = {"opExecAction"}) @ToString
public class Node { public class Node {
private int id; private int id;
private String name; private String name;

View File

@ -22,6 +22,7 @@ package org.nd4j.linalg.api.ops.impl.layers.convolution.config;
import java.util.Map; import java.util.Map;
import lombok.EqualsAndHashCode;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import lombok.val; import lombok.val;
import org.nd4j.linalg.exception.ND4JIllegalStateException; import org.nd4j.linalg.exception.ND4JIllegalStateException;
@ -29,6 +30,7 @@ import org.nd4j.linalg.exception.ND4JIllegalStateException;
import java.lang.reflect.Field; import java.lang.reflect.Field;
@Slf4j @Slf4j
@EqualsAndHashCode
public abstract class BaseConvolutionConfig { public abstract class BaseConvolutionConfig {
public abstract Map<String, Object> toProperties(); public abstract Map<String, Object> toProperties();

View File

@ -27,8 +27,8 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@Data @Data
@NoArgsConstructor @NoArgsConstructor
@ToString(callSuper = true, exclude = {"pretrain"}) @ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true, exclude = {"pretrain"}) @EqualsAndHashCode(callSuper = true)
@JsonIgnoreProperties("pretrain") @JsonIgnoreProperties("pretrain")
public abstract class BasePretrainNetwork extends FeedForwardLayer { public abstract class BasePretrainNetwork extends FeedForwardLayer {

View File

@ -22,6 +22,7 @@ package org.deeplearning4j.optimize.listeners;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NonNull; import lombok.NonNull;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.deeplearning4j.nn.api.Model; import org.deeplearning4j.nn.api.Model;
@ -135,6 +136,7 @@ public class FailureTestingListener implements TrainingListener, Serializable {
@Data @Data
@EqualsAndHashCode(callSuper = false)
public static abstract class FailureTrigger implements Serializable { public static abstract class FailureTrigger implements Serializable {
private boolean initialized = false; private boolean initialized = false;
@ -198,6 +200,7 @@ public class FailureTestingListener implements TrainingListener, Serializable {
} }
@Data @Data
@EqualsAndHashCode(callSuper = false)
public static class RandomProb extends FailureTrigger { public static class RandomProb extends FailureTrigger {
private final CallType callType; private final CallType callType;
@ -223,6 +226,7 @@ public class FailureTestingListener implements TrainingListener, Serializable {
@Data @Data
@EqualsAndHashCode(callSuper = false)
public static class TimeSinceInitializedTrigger extends FailureTrigger { public static class TimeSinceInitializedTrigger extends FailureTrigger {
private final long msSinceInit; private final long msSinceInit;
@ -245,6 +249,7 @@ public class FailureTestingListener implements TrainingListener, Serializable {
} }
@Data @Data
@EqualsAndHashCode(callSuper = false)
public static class UserNameTrigger extends FailureTrigger { public static class UserNameTrigger extends FailureTrigger {
private final String userName; private final String userName;
private boolean shouldFail = false; private boolean shouldFail = false;
@ -268,6 +273,7 @@ public class FailureTestingListener implements TrainingListener, Serializable {
//System.out.println("Hostname: " + InetAddress.getLocalHost().getHostName()); //System.out.println("Hostname: " + InetAddress.getLocalHost().getHostName());
@Data @Data
@EqualsAndHashCode(callSuper = false)
public static class HostNameTrigger extends FailureTrigger{ public static class HostNameTrigger extends FailureTrigger{
private final String hostName; private final String hostName;
private boolean shouldFail = false; private boolean shouldFail = false;
@ -296,6 +302,7 @@ public class FailureTestingListener implements TrainingListener, Serializable {
} }
@Data @Data
@EqualsAndHashCode(callSuper = false)
public static class IterationEpochTrigger extends FailureTrigger { public static class IterationEpochTrigger extends FailureTrigger {
private final boolean isEpoch; private final boolean isEpoch;

View File

@ -34,10 +34,12 @@ dependencies {
implementation projects.cavisDnn.cavisDnnData.cavisDnnDataUtilityIterators implementation projects.cavisDnn.cavisDnnData.cavisDnnDataUtilityIterators
implementation 'org.scala-lang:scala-library' implementation 'org.scala-lang:scala-library'
implementation "io.aeron:aeron-all:1.32.0" implementation 'io.aeron:aeron-all:1.39.0'
implementation "org.slf4j:slf4j-api" implementation "org.slf4j:slf4j-api"
implementation 'com.google.code.findbugs:jsr305:3.0.2'
implementation "com.fasterxml.jackson.core:jackson-annotations"
testImplementation 'ch.qos.logback:logback-classic' testImplementation 'ch.qos.logback:logback-classic'
testImplementation projects.cavisDnn.cavisDnnCommonTests testImplementation projects.cavisDnn.cavisDnnCommonTests
testImplementation projects.cavisDnn.cavisDnnData.cavisDnnDataDatasets testImplementation projects.cavisDnn.cavisDnnData.cavisDnnDataDatasets
} }

View File

@ -21,7 +21,6 @@
package org.nd4j.common.tests; package org.nd4j.common.tests;
import lombok.extern.log4j.Log4j2;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.bytedeco.javacpp.Pointer; import org.bytedeco.javacpp.Pointer;
import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.AfterEach;
@ -132,7 +131,9 @@ public abstract class BaseND4JTest {
System.out.println("Open workspace leaked from test! Exiting - " + currWS.getId() + ", isOpen = " + currWS.isScopeActive() + " - " + currWS); System.out.println("Open workspace leaked from test! Exiting - " + currWS.getId() + ", isOpen = " + currWS.isScopeActive() + " - " + currWS);
System.out.flush(); System.out.flush();
try{ Thread.sleep(1000); } catch (InterruptedException e){ } try{ Thread.sleep(1000); } catch (InterruptedException e){
System.out.println(e.getMessage());
}
System.exit(1); System.exit(1);
} }