Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Thoms2017-11-08 16:34:49 -0500
committerKarsten Thoms2017-11-08 16:34:49 -0500
commitb8015aa45a3d59160bc1c54f34c47de7f414fc3e (patch)
tree6d304a23f02d3785067e302231ce34d728361c85
parent5a691cd0dea8153bd52edf246a2598fc58bf5a9f (diff)
downloadeclipse.platform.debug-b8015aa45a3d59160bc1c54f34c47de7f414fc3e.tar.gz
eclipse.platform.debug-b8015aa45a3d59160bc1c54f34c47de7f414fc3e.tar.xz
eclipse.platform.debug-b8015aa45a3d59160bc1c54f34c47de7f414fc3e.zip
Change-Id: I67272d54f503635c460ccf382322ac4487933f71 Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
-rw-r--r--org.eclipse.debug.core/core/org/eclipse/debug/internal/core/XMLMemento.java2
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpointSortBy/SortBreakpointsAction.java2
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/renderings/RenderingsUtil.java4
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/renderings/SignedIntegerRendering.java2
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/renderings/UnsignedIntegerRendering.java2
5 files changed, 6 insertions, 6 deletions
diff --git a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/XMLMemento.java b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/XMLMemento.java
index a463d3e63..a3a21e2eb 100644
--- a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/XMLMemento.java
+++ b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/XMLMemento.java
@@ -250,7 +250,7 @@ public final class XMLMemento {
}
String strValue = attr.getValue();
try {
- return new Float(strValue);
+ return Float.valueOf(strValue);
} catch (NumberFormatException e) {
DebugPlugin.logMessage("Memento problem - Invalid float for key: " //$NON-NLS-1$
+ key + " value: " + strValue, e); //$NON-NLS-1$
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpointSortBy/SortBreakpointsAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpointSortBy/SortBreakpointsAction.java
index e41d523fd..5fd612ca8 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpointSortBy/SortBreakpointsAction.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpointSortBy/SortBreakpointsAction.java
@@ -56,7 +56,7 @@ public class SortBreakpointsAction extends Action {
DebugUIPlugin.getDefault().getPreferenceStore().setValue(IInternalDebugUIConstants.PREF_BREAKPOINT_SORTING_ORDER, actionSort);
}
// update the presentation context element comparator sorting order
- fView.getTreeModelViewer().getPresentationContext().setProperty(IBreakpointUIConstants.PROP_BREAKPOINTS_ELEMENT_COMPARATOR_SORT, new Integer(actionSort));
+ fView.getTreeModelViewer().getPresentationContext().setProperty(IBreakpointUIConstants.PROP_BREAKPOINTS_ELEMENT_COMPARATOR_SORT, Integer.valueOf(actionSort));
}
}
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/renderings/RenderingsUtil.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/renderings/RenderingsUtil.java
index d795ea231..c63baa98d 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/renderings/RenderingsUtil.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/renderings/RenderingsUtil.java
@@ -435,13 +435,13 @@ public class RenderingsUtil {
{
for (int j=0; j<8; j++)
{
- buf[j] = new Long(i>>j*8).byteValue();
+ buf[j] = Long.valueOf(i>>j*8).byteValue();
}
return buf;
}
for (int j=7; j>=0; j--)
{
- buf[j] = new Long(i>>(7-j)*8).byteValue();
+ buf[j] = Long.valueOf(i>>(7-j)*8).byteValue();
}
return buf;
}
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/renderings/SignedIntegerRendering.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/renderings/SignedIntegerRendering.java
index 2bcf483d4..f9e6e79f2 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/renderings/SignedIntegerRendering.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/renderings/SignedIntegerRendering.java
@@ -66,7 +66,7 @@ public class SignedIntegerRendering extends AbstractIntegerRendering {
return bigRet.toString();
}
- ret = new Long(result).toString();
+ ret = Long.valueOf(result).toString();
return ret;
}
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/renderings/UnsignedIntegerRendering.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/renderings/UnsignedIntegerRendering.java
index f15fb6cf4..9da04f22b 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/renderings/UnsignedIntegerRendering.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/renderings/UnsignedIntegerRendering.java
@@ -63,7 +63,7 @@ public class UnsignedIntegerRendering extends AbstractIntegerRendering {
return bigRet.toString();
}
- ret = new Long(result).toString();
+ ret = Long.valueOf(result).toString();
return ret;
}

Back to the top