From 3ef3c057a6efe9c2c1db16b087228ee3a3821f82 Mon Sep 17 00:00:00 2001 From: mka Date: Wed, 14 Nov 2012 09:18:29 +0000 Subject: [PATCH] PMD violations are fixed --- .../src/org/splat/simer/TitleBarSettings.java | 38 +++++++++---------- .../src/org/splat/simer/ToolBarSettings.java | 36 +++++++++--------- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/Workspace/Siman/src/org/splat/simer/TitleBarSettings.java b/Workspace/Siman/src/org/splat/simer/TitleBarSettings.java index 4f61a9b..f1d3234 100644 --- a/Workspace/Siman/src/org/splat/simer/TitleBarSettings.java +++ b/Workspace/Siman/src/org/splat/simer/TitleBarSettings.java @@ -19,41 +19,41 @@ public class TitleBarSettings { /** * The progress state of the open study/knowledge. */ - private String progressState; + private String _progressState; /** * The selection state of the open study/knowledge. */ - private String selectionState; + private String _selectionState; /** * The type of the open study/knowledge. */ - private String entryType; + private String _entryType; /** * The type title of the open study/knowledge. */ - private String entryTypeTitle; + private String _entryTypeTitle; /** * The title of the open study/knowledge. */ - private String entryTitle; + private String _entryTitle; /** * Property that indicates whether the current open study is editable or not. * On the screen it looks like pen on the status icon, pop-up menu also can be called. * It is necessary for correct building the title bar. */ - private String editDisabledProperty; + private String _editDisabledProperty; /** * Get the progressState. * @return the progressState */ public String getProgressState() { - return progressState; + return _progressState; } /** @@ -61,7 +61,7 @@ public class TitleBarSettings { * @param progressState the progressState to set */ public void setProgressState(final String progressState) { - this.progressState = progressState; + _progressState = progressState; } /** @@ -69,7 +69,7 @@ public class TitleBarSettings { * @return the selectionState */ public String getSelectionState() { - return selectionState; + return _selectionState; } /** @@ -77,7 +77,7 @@ public class TitleBarSettings { * @param selectionState the selectionState to set */ public void setSelectionState(final String selectionState) { - this.selectionState = selectionState; + _selectionState = selectionState; } /** @@ -85,7 +85,7 @@ public class TitleBarSettings { * @return the entryType */ public String getEntryType() { - return entryType; + return _entryType; } /** @@ -93,7 +93,7 @@ public class TitleBarSettings { * @param entryType the entryType to set */ public void setEntryType(final String entryType) { - this.entryType = entryType; + _entryType = entryType; } /** @@ -101,7 +101,7 @@ public class TitleBarSettings { * @return the entryTypeTitle */ public String getEntryTypeTitle() { - return entryTypeTitle; + return _entryTypeTitle; } /** @@ -109,7 +109,7 @@ public class TitleBarSettings { * @param entryTypeTitle the entryTypeTitle to set */ public void setEntryTypeTitle(final String entryTypeTitle) { - this.entryTypeTitle = entryTypeTitle; + _entryTypeTitle = entryTypeTitle; } /** @@ -117,7 +117,7 @@ public class TitleBarSettings { * @return the entryTitle */ public String getEntryTitle() { - return entryTitle; + return _entryTitle; } @@ -126,7 +126,7 @@ public class TitleBarSettings { * @param entryTitle the entryTitle to set */ public void setEntryTitle(final String entryTitle) { - this.entryTitle = entryTitle; + _entryTitle = entryTitle; } /** @@ -134,15 +134,15 @@ public class TitleBarSettings { * @return the editDisabledProperty */ public String getEditDisabledProperty() { - return editDisabledProperty; + return _editDisabledProperty; } /** * Set the editDisabledProperty. * @param editDisabledProperty the editDisabledProperty to set */ - public void setEditDisabledProperty(String editDisabledProperty) { - this.editDisabledProperty = editDisabledProperty; + public void setEditDisabledProperty(final String editDisabledProperty) { + _editDisabledProperty = editDisabledProperty; } } diff --git a/Workspace/Siman/src/org/splat/simer/ToolBarSettings.java b/Workspace/Siman/src/org/splat/simer/ToolBarSettings.java index feac330..7311eff 100644 --- a/Workspace/Siman/src/org/splat/simer/ToolBarSettings.java +++ b/Workspace/Siman/src/org/splat/simer/ToolBarSettings.java @@ -21,34 +21,34 @@ public class ToolBarSettings { /** * Property, is this tool the "None" one. */ - private Boolean isToolNone; + private Boolean _isToolNone; /** * Property, is this tool the "Standard" one. */ - private Boolean isToolStandard; + private Boolean _isToolStandard; /** * Property, is this tool the "Study" one. */ - private Boolean isToolStudy; + private Boolean _isToolStudy; /** * Property, is this tool the "Back" one. */ - private Boolean isToolBack; + private Boolean _isToolBack; //=== OTHER OPERATIONS ============================ /** * Can the given User edit the given Study/Knowledge. */ - private Boolean canUserEdit; + private Boolean _canUserEdit; /** * It's for (popup.isEnabled("script") operation on the toolbar.jsp. */ - private Boolean isEnabledScript; + private Boolean _isEnabledScript; /** * Initialize the tool bar properties. @@ -79,7 +79,7 @@ public class ToolBarSettings { * @return the isToolNone */ public Boolean getIsToolNone() { - return isToolNone; + return _isToolNone; } /** @@ -87,7 +87,7 @@ public class ToolBarSettings { * @param isToolNone the isToolNone to set */ public void setIsToolNone(final Boolean isToolNone) { - this.isToolNone = isToolNone; + _isToolNone = isToolNone; } /** @@ -95,7 +95,7 @@ public class ToolBarSettings { * @return the isToolStandard */ public Boolean getIsToolStandard() { - return isToolStandard; + return _isToolStandard; } /** @@ -103,7 +103,7 @@ public class ToolBarSettings { * @param isToolStandard the isToolStandard to set */ public void setIsToolStandard(final Boolean isToolStandard) { - this.isToolStandard = isToolStandard; + _isToolStandard = isToolStandard; } /** @@ -111,7 +111,7 @@ public class ToolBarSettings { * @return the isToolStudy */ public Boolean getIsToolStudy() { - return isToolStudy; + return _isToolStudy; } /** @@ -119,7 +119,7 @@ public class ToolBarSettings { * @param isToolStudy the isToolStudy to set */ public void setIsToolStudy(final Boolean isToolStudy) { - this.isToolStudy = isToolStudy; + _isToolStudy = isToolStudy; } /** @@ -127,7 +127,7 @@ public class ToolBarSettings { * @return the isToolBack */ public Boolean getIsToolBack() { - return isToolBack; + return _isToolBack; } /** @@ -135,7 +135,7 @@ public class ToolBarSettings { * @param isToolBack the isToolBack to set */ public void setIsToolBack(final Boolean isToolBack) { - this.isToolBack = isToolBack; + _isToolBack = isToolBack; } /** @@ -143,7 +143,7 @@ public class ToolBarSettings { * @return the canUserEdit */ public Boolean getCanUserEdit() { - return canUserEdit; + return _canUserEdit; } /** @@ -151,7 +151,7 @@ public class ToolBarSettings { * @param canUserEdit the canUserEdit to set */ public void setCanUserEdit(final Boolean canUserEdit) { - this.canUserEdit = canUserEdit; + _canUserEdit = canUserEdit; } /** @@ -159,7 +159,7 @@ public class ToolBarSettings { * @return the isEnabledScript */ public Boolean getIsEnabledScript() { - return isEnabledScript; + return _isEnabledScript; } /** @@ -167,6 +167,6 @@ public class ToolBarSettings { * @param isEnabledScript the isEnabledScript to set */ public void setIsEnabledScript(final Boolean isEnabledScript) { - this.isEnabledScript = isEnabledScript; + _isEnabledScript = isEnabledScript; } } -- 2.39.2