Skip to content

Commit

Permalink
fixed javadoc warnings from new code
Browse files Browse the repository at this point in the history
fixed more serialVersionUID that were missing
  • Loading branch information
Christopher Gross cogross committed Mar 4, 2024
1 parent 3336b96 commit efb9a3d
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import java.io.DataInput;
import java.io.IOException;
import java.io.Serializable;
import java.math.BigInteger;

import org.apache.commons.lang.builder.CompareToBuilder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
* {@link UniqueFields#from(String)}.
*/
public class UniqueFields implements Serializable {
private static final long serialVersionUID = 1l;

private Multimap<String,UniqueGranularity> fieldMap;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
* {@link GroupFields#from(String)}.
*/
public class GroupFields implements Serializable {
private static final long serialVersionUID = 1l;

private static final String GROUP = "GROUP";
private static final String SUM = "SUM";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ public Object visit(ASTFunctionNode node, Object data) {
* the variable name
* @param undef
* whether the variable is undefined or null
* @return
*
* @return null if it cannot be solved
*/
@Override
protected Object unsolvableVariable(JexlNode node, String var, boolean undef) {
Expand All @@ -168,7 +169,7 @@ protected Object unsolvableVariable(JexlNode node, String var, boolean undef) {
* the method/function name
* @param xany
* the cause
* @return
* @return the JexlException
*/
@Override
protected JexlException invocationException(JexlNode node, String methodName, Throwable xany) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*/
@SuppressWarnings("serial")
public class IndexLookupMap implements Map<String,ValueSet>, Serializable {
private static final long serialVersionUID = 1l;
private Set<String> patterns = new HashSet<>();
private Map<String,ValueSet> index = new HashMap<>();
private boolean exceededKeyThreshold = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ private Map.Entry<Key,Value> findNext() {
}

public static class IteratorException extends RuntimeException implements Serializable {
private static final long serialVersionUID = 1l;

public IteratorException() {
super();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,15 @@ public int apply(SSDeepHash signature1, SSDeepHash signature2) {
/**
* This is the low level chunk scoring algorithm. It takes two chunks and scores them on a scale of 0-100 where 0 is a terrible match and 100 is a great
* match. The chunkSize is used to cope with very small messages.
*
* @param s1
* the first chunk
* @param s2
* the second chunk
* @param chunkSize
* size of the chunk
*
* @return the new score
*/
private static int scoreChunks(final String s1, final String s2, final int chunkSize) {
final int len1 = s1.length();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import io.protostuff.Message;

public abstract class MetadataQueryResponseBase<T> extends BaseQueryResponse implements Serializable, TotalResultsAware, Message<T> {
private static final long serialVersionUID = 1l;

public abstract List<MetadataFieldBase> getFields();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

@XmlAccessorType(XmlAccessType.NONE)
public class FileDetails implements Serializable, Message<FileDetails> {

private static final long serialVersionUID = 1l;
@XmlAttribute(name = "filePath")
private String path;
@XmlAttribute(name = "dateReceived")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import datawave.webservice.query.configuration.GenericQueryConfiguration;

public class CompositeQueryConfiguration extends GenericQueryConfiguration implements Serializable {
private static final long serialVersionUID = 1l;

private Query query = null;

Expand Down

0 comments on commit efb9a3d

Please sign in to comment.