litesoft
Diff Revisions
808
vs
809
for /trunk/Java/core/Server/src/org/litesoft/util/FileReplacer.java
|
@@ -3,6 +3,8 @@ |
3 |
3 |
|
|
4 |
4 |
|
import java.io.*; |
5 |
5 |
|
|
|
6 |
+ |
import org.litesoft.core.typeutils.*; |
|
7 |
+ |
|
6 |
8 |
|
public class FileReplacer extends AbstractFileAR |
7 |
9 |
|
{ |
8 |
10 |
|
public static final String VERSION = "1.5"; |
|
@@ -45,7 +47,7 @@ |
45 |
47 |
|
{ |
46 |
48 |
|
byte[] srcBytes = FileUtils.load( pSource, MAX_FILE_SIZE ); |
47 |
49 |
|
byte[] dstBytes = FileUtils.load( pDestination, MAX_FILE_SIZE ); |
48 |
|
- |
if ( !Utils.areArraysEqual( srcBytes, dstBytes ) ) |
|
50 |
+ |
if ( !Integers.areArraysEqual( srcBytes, dstBytes ) ) |
49 |
51 |
|
{ |
50 |
52 |
|
FileUtils.deleteIfExists( pDestination ); |
51 |
53 |
|
FileUtils.store( pDestination, srcBytes ); |