Subversion Repository Public Repository

litesoft

Diff Revisions 49 vs 151 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/view/Property.java

Diff revisions: vs.
  @@ -9,20 +9,20 @@
9 9 private final String mName;
10 10 private final T mDefault;
11 11
12 - public Property(Properties pProperties, String pName)
12 + public Property( Properties pProperties, String pName )
13 13 {
14 - this(pProperties, pName, null);
14 + this( pProperties, pName, null );
15 15 }
16 16
17 17 /**
18 18 * @param pProperties non-null
19 - * @param pName non-null
20 - * @param pDefault optional
19 + * @param pName non-null
20 + * @param pDefault optional
21 21 */
22 - public Property(Properties pProperties, String pName, T pDefault)
22 + public Property( Properties pProperties, String pName, T pDefault )
23 23 {
24 - UtilsGwt.assertNotNull("pProperties", pProperties);
25 - UtilsGwt.assertNotNullNotEmpty("pName", pName);
24 + UtilsGwt.assertNotNull( "pProperties", pProperties );
25 + UtilsGwt.assertNotNullNotEmpty( "pName", pName );
26 26 mProperties = pProperties;
27 27 mName = pName;
28 28 mDefault = pDefault;
  @@ -36,7 +36,7 @@
36 36 @SuppressWarnings("unchecked")
37 37 public T get()
38 38 {
39 - T value = (T) mProperties.get(getName());
39 + T value = (T) mProperties.get( getName() );
40 40 return (value != null) ? value : mDefault;
41 41 }
42 42
  @@ -45,8 +45,8 @@
45 45 return mDefault;
46 46 }
47 47
48 - public void set(T pValue)
48 + public void set( T pValue )
49 49 {
50 - mProperties.set(mName, pValue);
50 + mProperties.set( mName, pValue );
51 51 }
52 52 }