SpotBugs.
This commit is contained in:
parent
38a782bcca
commit
7b0e1a051d
|
@ -184,4 +184,11 @@ public class NeuronString {
|
|||
network.addLink(network.getNeuron(size - 1), network.getNeuron(0));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent finalizer attack (cf. "SpotBugs").
|
||||
*/
|
||||
protected final void finalize() {
|
||||
// Do nothing.
|
||||
}
|
||||
}
|
||||
|
|
|
@ -80,4 +80,11 @@ public class ExponentialDecayFunction implements LongToDoubleFunction {
|
|||
public double applyAsDouble(long numCall) {
|
||||
return a * Math.exp(-numCall * oneOverB);
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent finalizer attack (cf. "SpotBugs").
|
||||
*/
|
||||
protected final void finalize() {
|
||||
// Do nothing.
|
||||
}
|
||||
}
|
||||
|
|
|
@ -82,4 +82,11 @@ public class QuasiSigmoidDecayFunction implements LongToDoubleFunction {
|
|||
public double applyAsDouble(long numCall) {
|
||||
return scale * sigmoid.applyAsDouble((double) numCall);
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent finalizer attack (cf. "SpotBugs").
|
||||
*/
|
||||
protected final void finalize() {
|
||||
// Do nothing.
|
||||
}
|
||||
}
|
||||
|
|
|
@ -815,4 +815,11 @@ public class NeuronSquareMesh2D
|
|||
return mean;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent finalizer attack (cf. "SpotBugs").
|
||||
*/
|
||||
protected final void finalize() {
|
||||
// Do nothing.
|
||||
}
|
||||
}
|
||||
|
|
|
@ -101,4 +101,11 @@ public class LocationFinder {
|
|||
public Location getLocation(Neuron n) {
|
||||
return locations.get(n.getIdentifier());
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent finalizer attack (cf. "SpotBugs").
|
||||
*/
|
||||
protected final void finalize() {
|
||||
// Do nothing.
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue