Salome HOME
Modifications to respect PMD rules.
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / EditDocumentAction.java
index 9c24fc99f1db24f60b080822c34af3adf14b019e..955e65b9734cd3e88ea9779ab20f3b08c06c2535 100644 (file)
@@ -148,7 +148,7 @@ public class EditDocumentAction extends DisplayStudyStepAction {
                        }
                        return SUCCESS;
                } catch (RuntimeException saverror) {
-                       logger.error("Reason:", saverror);
+                       LOG.error("Reason:", saverror);
                        return ERROR;
                } catch (InvalidPropertyException error) {
                        return INPUT;
@@ -179,15 +179,15 @@ public class EditDocumentAction extends DisplayStudyStepAction {
                        Publication edited = step.getDocument(Integer.valueOf(index));
                        ConvertsRelation export = getPublicationService().attach(edited, parse[parse.length - 1]);
 
-                       if (logger.isInfoEnabled())
-                               logger.info("Moving \"" + upfile.getName() + "\" to \""
+                       if (LOG.isInfoEnabled())
+                               LOG.info("Moving \"" + upfile.getName() + "\" to \""
                                                + updir.getPath() + "\".");
                        upfile.renameTo(export.getTo().asFile());
 
                        mystudy.update(edited);
                        return SUCCESS;
                } catch (Exception error) {
-                       logger.error("Reason:", error);
+                       LOG.error("Reason:", error);
                        return ERROR;
                }
        }
@@ -215,7 +215,7 @@ public class EditDocumentAction extends DisplayStudyStepAction {
                        mystudy.remove(doctag); // Updates the presentation
                        return SUCCESS;
                } catch (RuntimeException saverror) {
-                       logger.error("Reason:", saverror);
+                       LOG.error("Reason:", saverror);
                        return ERROR;
                }
        }