litesoft
Diff Revisions
803
vs
804
for /trunk/Java/core/Server/src/org/litesoft/util/template/TemplateControl.java
|
@@ -25,7 +25,7 @@ |
25 |
25 |
|
public TemplateControl( Reader pTemplate, Collection<TCsub> pSubstitutions ) |
26 |
26 |
|
{ |
27 |
27 |
|
this( null, pTemplate, pSubstitutions ); |
28 |
|
- |
Utils.assertNotNull( "Template", mTemplate = pTemplate ); |
|
28 |
+ |
Objects.assertNotNull( "Template", mTemplate = pTemplate ); |
29 |
29 |
|
} |
30 |
30 |
|
|
31 |
31 |
|
public TemplateControl( Reader pTemplate, TCsub... pSubstitutions ) |
|
@@ -61,7 +61,7 @@ |
61 |
61 |
|
public final void applyTo( Writer pWriter, String pReplaceNotFoundsWith ) |
62 |
62 |
|
throws IOException |
63 |
63 |
|
{ |
64 |
|
- |
Utils.assertNotNull( "Writer", pWriter ); |
|
64 |
+ |
Objects.assertNotNull( "Writer", pWriter ); |
65 |
65 |
|
pReplaceNotFoundsWith = Strings.deNull( pReplaceNotFoundsWith ); |
66 |
66 |
|
pWriter.write( blocksFromReaderReplace( pWriter, pReplaceNotFoundsWith ) ); |
67 |
67 |
|
pWriter.flush(); |