diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-16 12:51:54 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-17 08:26:19 +0200 |
commit | 12b01b920f42666db84c8be1c9b6fd89a86eea4e (patch) | |
tree | 35a462009765a838e1381fe5d7614caed450daef /wizards | |
parent | 3beae0f05d1c8c976dfcebe02c8830752d708c74 (diff) |
java: no need to call String.valueOf to append to a String
Change-Id: I5ef45b971d24dde814ab8cbb2e9503d9da4f0d73
Diffstat (limited to 'wizards')
5 files changed, 8 insertions, 8 deletions
diff --git a/wizards/com/sun/star/wizards/common/Resource.java b/wizards/com/sun/star/wizards/common/Resource.java index 9f8f6da67f76..657e750792f6 100644 --- a/wizards/com/sun/star/wizards/common/Resource.java +++ b/wizards/com/sun/star/wizards/common/Resource.java @@ -79,7 +79,7 @@ public class Resource } catch (Exception exception) { - throw new java.lang.IllegalArgumentException("Resource with ID not " + String.valueOf(nID) + "not found", exception); + throw new java.lang.IllegalArgumentException("Resource with ID not " + nID + "not found", exception); } } @@ -91,7 +91,7 @@ public class Resource } catch (Exception exception) { - throw new java.lang.IllegalArgumentException("Resource with ID not " + String.valueOf(nID) + "not found", exception); + throw new java.lang.IllegalArgumentException("Resource with ID not " + nID + "not found", exception); } } @@ -108,7 +108,7 @@ public class Resource } catch (Exception exception) { - throw new java.lang.IllegalArgumentException("Resource with ID not" + String.valueOf(nID) + "not found", exception); + throw new java.lang.IllegalArgumentException("Resource with ID not" + nID + "not found", exception); } } diff --git a/wizards/com/sun/star/wizards/db/SQLQueryComposer.java b/wizards/com/sun/star/wizards/db/SQLQueryComposer.java index 7fe8530ceff2..de25e25a06ef 100644 --- a/wizards/com/sun/star/wizards/db/SQLQueryComposer.java +++ b/wizards/com/sun/star/wizards/db/SQLQueryComposer.java @@ -389,7 +389,7 @@ public class SQLQueryComposer if (bAliasNameexists) { a++; - locAliasName = _TableName + "_" + String.valueOf(a); + locAliasName = _TableName + "_" + a; } else { diff --git a/wizards/com/sun/star/wizards/ui/AggregateComponent.java b/wizards/com/sun/star/wizards/ui/AggregateComponent.java index ed05e94bd9bc..31eb46a948f3 100644 --- a/wizards/com/sun/star/wizards/ui/AggregateComponent.java +++ b/wizards/com/sun/star/wizards/ui/AggregateComponent.java @@ -480,13 +480,13 @@ public class AggregateComponent extends ControlScroller private String getFunctionControlName(int _index) { - String namesuffix = "_" + String.valueOf(_index + 1); + String namesuffix = "_" + (_index + 1); return "lstfunctions" + namesuffix; } private String getFieldsControlName(int _index) { - String namesuffix = "_" + String.valueOf(_index + 1); + String namesuffix = "_" + (_index + 1); return "lstFieldnames" + namesuffix; } diff --git a/wizards/com/sun/star/wizards/ui/FilterComponent.java b/wizards/com/sun/star/wizards/ui/FilterComponent.java index 000e1963f35f..0d40397992b5 100644 --- a/wizards/com/sun/star/wizards/ui/FilterComponent.java +++ b/wizards/com/sun/star/wizards/ui/FilterComponent.java @@ -536,7 +536,7 @@ public class FilterComponent try { - String sCompSuffix = sIncSuffix + "_" + String.valueOf(Index + 1); + String sCompSuffix = sIncSuffix + "_" + (Index + 1); m_bEnabled = _bEnabled; // Label Field diff --git a/wizards/com/sun/star/wizards/ui/WizardDialog.java b/wizards/com/sun/star/wizards/ui/WizardDialog.java index 9a382a1b8fc0..5d6292409faa 100644 --- a/wizards/com/sun/star/wizards/ui/WizardDialog.java +++ b/wizards/com/sun/star/wizards/ui/WizardDialog.java @@ -700,7 +700,7 @@ public abstract class WizardDialog extends UnoDialog2 implements VetoableChangeL for (int i = 0; i < sRightPaneHeaders.length; i++) { - insertLabel("lblQueryTitle" + String.valueOf(i), + insertLabel("lblQueryTitle" + i, new String[] { PropertyNames.FONT_DESCRIPTOR, PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_MULTILINE, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH |