Commit 9d655236 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Added protected method #decodeVersion.

git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@2868 b35dd754-fafc-0310-a699-88a17e54d16e
parent acf2e382
......@@ -263,4 +263,12 @@ public abstract class Session implements RoutableChannelHandler {
public String toString() {
return super.toString() + " status: " + status + " address: " + address + " id: " + streamID;
}
protected static int[] decodeVersion(String version) {
int[] answer = new int[] {0 , 0};
String [] versionString = version.split("\\.");
answer[0] = Integer.parseInt(versionString[0]);
answer[1] = Integer.parseInt(versionString[1]);
return answer;
}
}
\ No newline at end of file
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