Skip to content

Commit

Permalink
serial version is 1L
Browse files Browse the repository at this point in the history
  • Loading branch information
msangel committed Jul 30, 2023
1 parent d91ce4a commit 9544a04
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/main/java/liqp/LValue.java
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ public boolean canBeDouble(Object value) {
}

public boolean isMap(Object value) {
return value != null && (value instanceof Map);
return (value instanceof Map);
}

@SuppressWarnings("unchecked")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package liqp.exceptions;

public class ExceededMaxIterationsException extends RuntimeException {
private static final long serialVersionUID = -2177965025182952056L;
private static final long serialVersionUID = 1L;

public ExceededMaxIterationsException(int maxIterations) {
super("exceeded maxIterations: " + maxIterations);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/liqp/exceptions/LiquidException.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import java.util.List;

public class LiquidException extends RuntimeException {
private static final long serialVersionUID = -7720091243157735323L;
private static final long serialVersionUID = 1L;

public final int line;
public final int charPositionInLine;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package liqp.exceptions;

public class VariableNotExistException extends RuntimeException {
private static final long serialVersionUID = -2726673309959828365L;
private static final long serialVersionUID = 1L;
private final String variableName;

public VariableNotExistException(String variableName) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/liqp/filters/Sort.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ private List<Comparable<Object>> asComparableList(TemplateContext context, Objec
}

static class SortableMap extends HashMap<String, Comparable<Object>> implements Comparable<Object> {
private static final long serialVersionUID = -6480701533195197967L;
private static final long serialVersionUID = 1L;
final String property;

SortableMap(java.util.Map<String, Comparable<Object>> map, String property) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/liqp/parser/LiquidSupport.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public interface LiquidSupport extends Inspectable {


class LiquidSerializer extends StdSerializer<LiquidSupport> {
private static final long serialVersionUID = -7053942654651060805L;
private static final long serialVersionUID = 1L;

public LiquidSerializer() {
this(null);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/liqp/spi/BasicTypesSupport.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ protected<T> void registerType(SimpleModule module, final Class<T> clazz) {
// so we will preserve the object in case of eager evaluation
// and will put it back when needed
module.addSerializer(new StdSerializer<T>(clazz) {
private static final long serialVersionUID = -6538120903478739907L;
private static final long serialVersionUID = 1L;

@Override
public void serialize(T value, JsonGenerator gen, SerializerProvider provider) throws IOException {
Expand Down

0 comments on commit 9544a04

Please sign in to comment.