Cleaning.
This commit is contained in:
parent
fe391612c6
commit
78ec0b739f
1 changed files with 6 additions and 15 deletions
|
@ -1,7 +1,9 @@
|
|||
package fr.devinsy.xid;
|
||||
|
||||
import java.io.*;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.File;
|
||||
import java.io.FileReader;
|
||||
import java.io.StringWriter;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -9,11 +11,7 @@ import java.io.*;
|
|||
*/
|
||||
public class FilePresenter extends DomPresenter
|
||||
{
|
||||
static protected org.apache.log4j.Logger logger;
|
||||
static
|
||||
{
|
||||
logger = org.apache.log4j.Logger.getLogger (FilePresenter.class);
|
||||
}
|
||||
static protected org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger (FilePresenter.class);
|
||||
|
||||
protected String sourceFilePathname;
|
||||
protected long sourceFileTime;
|
||||
|
@ -90,14 +88,7 @@ public class FilePresenter extends DomPresenter
|
|||
// Get the good tree.
|
||||
File source = new File (this.sourceFilePathname);
|
||||
|
||||
if (source == null)
|
||||
{
|
||||
String errorMessage = "source file not defined";
|
||||
logger.error (errorMessage);
|
||||
result = null;
|
||||
throw new Exception (errorMessage);
|
||||
}
|
||||
else if (!source.exists ())
|
||||
if (!source.exists ())
|
||||
{
|
||||
String errorMessage = "source file defined but not found (" + this.sourceFilePathname + ")";
|
||||
logger.error (errorMessage);
|
||||
|
|
Loading…
Reference in a new issue