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 * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
...@@ -26,8 +26,8 @@ import java.io.Serializable; ...@@ -26,8 +26,8 @@ import java.io.Serializable;
/** /**
* Encodable object that wraps an integer. * Encodable object that wraps an integer.
*/ */
@SuppressWarnings("serial")
public class EncodableInteger implements Encodable, Serializable { public class EncodableInteger implements Encodable, Serializable {
private int value; private int value;
public EncodableInteger() {} public EncodableInteger() {}
...@@ -70,11 +70,8 @@ public class EncodableInteger implements Encodable, Serializable { ...@@ -70,11 +70,8 @@ public class EncodableInteger implements Encodable, Serializable {
} }
public static class Factory implements EncodableFactory { public static class Factory implements EncodableFactory {
public Encodable createEncodable() { public Encodable createEncodable() {
return new EncodableInteger(); 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 * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
...@@ -30,8 +30,8 @@ import java.io.Serializable; ...@@ -30,8 +30,8 @@ import java.io.Serializable;
* Encodable object that wraps a string. * Encodable object that wraps a string.
* It also serves as a cache for the encoded string. * It also serves as a cache for the encoded string.
*/ */
@SuppressWarnings("serial")
public class EncodedString implements Serializable, Encodable { public class EncodedString implements Serializable, Encodable {
private String string; private String string;
private byte[] encodedString; private byte[] encodedString;
...@@ -111,11 +111,8 @@ public class EncodedString implements Serializable, Encodable { ...@@ -111,11 +111,8 @@ public class EncodedString implements Serializable, Encodable {
} }
public static class Factory implements EncodableFactory { public static class Factory implements EncodableFactory {
public Encodable createEncodable() { public Encodable createEncodable() {
return new EncodedString(); 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 * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
...@@ -25,8 +25,8 @@ import java.io.Serializable; ...@@ -25,8 +25,8 @@ import java.io.Serializable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@SuppressWarnings("serial")
public class EncodedStringList implements Serializable, Encodable { public class EncodedStringList implements Serializable, Encodable {
private List<EncodedString> list; private List<EncodedString> list;
public EncodedStringList() { public EncodedStringList() {
...@@ -67,11 +67,8 @@ public class EncodedStringList implements Serializable, Encodable { ...@@ -67,11 +67,8 @@ public class EncodedStringList implements Serializable, Encodable {
} }
public static class Factory implements EncodableFactory { public static class Factory implements EncodableFactory {
public Encodable createEncodable() { public Encodable createEncodable() {
return new EncodedStringList(); 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