Commit dc0e23a6 authored by afreyssin's avatar afreyssin
Browse files

Minor changes.

parent 251d6869
/*
* Copyright (C) 2013 ScalAgent Distributed Technologies
* Copyright (C) 2013 - 2017 ScalAgent Distributed Technologies
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -26,8 +26,8 @@ import java.io.Serializable;
/**
* Encodable object that wraps an integer.
*/
@SuppressWarnings("serial")
public class EncodableInteger implements Encodable, Serializable {
private int value;
public EncodableInteger() {}
......@@ -70,11 +70,8 @@ public class EncodableInteger implements Encodable, Serializable {
}
public static class Factory implements EncodableFactory {
public Encodable createEncodable() {
return new EncodableInteger();
}
}
}
/*
* Copyright (C) 2013 ScalAgent Distributed Technologies
* Copyright (C) 2013 - 2017 ScalAgent Distributed Technologies
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -30,8 +30,8 @@ import java.io.Serializable;
* Encodable object that wraps a string.
* It also serves as a cache for the encoded string.
*/
@SuppressWarnings("serial")
public class EncodedString implements Serializable, Encodable {
private String string;
private byte[] encodedString;
......@@ -111,11 +111,8 @@ public class EncodedString implements Serializable, Encodable {
}
public static class Factory implements EncodableFactory {
public Encodable createEncodable() {
return new EncodedString();
}
}
}
/*
* Copyright (C) 2013 ScalAgent Distributed Technologies
* Copyright (C) 2013 - 2017 ScalAgent Distributed Technologies
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -25,8 +25,8 @@ import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
@SuppressWarnings("serial")
public class EncodedStringList implements Serializable, Encodable {
private List<EncodedString> list;
public EncodedStringList() {
......@@ -67,11 +67,8 @@ public class EncodedStringList implements Serializable, Encodable {
}
public static class Factory implements EncodableFactory {
public Encodable createEncodable() {
return new EncodedStringList();
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment