Subversion Repository Public Repository

litesoft

Diff Revisions 949 vs 950 for /trunk/Java/GWT/OldServer/src/org/litesoft/GWT/forms/server/support/converters/SendableStringConverter.java

Diff revisions: vs.
  @@ -1,22 +1,22 @@
1 - // This Source Code is in the Public Domain per: http://unlicense.org
2 - package org.litesoft.GWT.forms.server.support.converters;
3 -
4 - import org.litesoft.GWT.forms.server.support.nonpublic.*;
5 -
6 - import java.io.*;
7 -
8 - public class SendableStringConverter extends AbstractSendableDataConverter {
9 - public static final FormSendableDataConverter INSTANCE = new SendableStringConverter();
10 -
11 - protected Serializable convertNotNullToPassable( Object pValue ) {
12 - return convertNonNullToString( pValue );
13 - }
14 -
15 - protected Object convertNotNullNotBoxedTypeFromPassable( Serializable pValue ) {
16 - return convertNonNullToString( pValue );
17 - }
18 -
19 - protected String convertNonNullToString( Object pValue ) {
20 - return pValue.toString();
21 - }
22 - }
1 + // This Source Code is in the Public Domain per: http://unlicense.org
2 + package org.litesoft.GWT.forms.server.support.converters;
3 +
4 + import org.litesoft.GWT.forms.server.support.nonpublic.*;
5 +
6 + import java.io.*;
7 +
8 + public class SendableStringConverter extends AbstractSendableDataConverter {
9 + public static final FormSendableDataConverter INSTANCE = new SendableStringConverter();
10 +
11 + protected Serializable convertNotNullToPassable( Object pValue ) {
12 + return convertNonNullToString( pValue );
13 + }
14 +
15 + protected Object convertNotNullNotBoxedTypeFromPassable( Serializable pValue ) {
16 + return convertNonNullToString( pValue );
17 + }
18 +
19 + protected String convertNonNullToString( Object pValue ) {
20 + return pValue.toString();
21 + }
22 + }