Skip to content

Commit 14ac317

Browse files
committed
More deprecated usages fixed.
1 parent b5681c5 commit 14ac317

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

rpm/org.eclipse.linuxtools.rpm.core/src/org/eclipse/linuxtools/rpm/core/utils/RPM.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class RPM {
4242
* the RPM configuration to use
4343
*/
4444
public RPM(RPMConfiguration config) {
45-
IEclipsePreferences node = new DefaultScope().getNode(RPMCorePlugin.ID);
45+
IEclipsePreferences node = DefaultScope.INSTANCE.getNode(RPMCorePlugin.ID);
4646
rpmCmd = node.get(IRPMConstants.RPM_CMD, ""); //$NON-NLS-1$
4747
String[] tmpMacroDefines = {
4848
rpmCmd,

rpm/org.eclipse.linuxtools.rpm.core/src/org/eclipse/linuxtools/rpm/core/utils/RPMBuild.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class RPMBuild {
4545
* the RPM configuration to use
4646
*/
4747
public RPMBuild(RPMConfiguration config) {
48-
IEclipsePreferences node = new DefaultScope().getNode(RPMCorePlugin.ID);
48+
IEclipsePreferences node = DefaultScope.INSTANCE.getNode(RPMCorePlugin.ID);
4949
rpmBuildCmd = node.get(IRPMConstants.RPMBUILD_CMD, ""); //$NON-NLS-1$
5050
String[] tmpMacroDefines = {
5151
rpmBuildCmd,

rpm/org.eclipse.linuxtools.rpm.core/src/org/eclipse/linuxtools/rpm/core/utils/RPMQuery.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public static String getProvides(IFile rpmFile) throws CoreException {
9090

9191
private static String query(IFile rpmFile, String... args)
9292
throws CoreException {
93-
IEclipsePreferences node = new DefaultScope().getNode(RPMCorePlugin.ID);
93+
IEclipsePreferences node = DefaultScope.INSTANCE.getNode(RPMCorePlugin.ID);
9494
String rpmCmd = node.get(IRPMConstants.RPM_CMD, ""); //$NON-NLS-1$
9595
List<String> command = new ArrayList<String>();
9696
command.add(rpmCmd);

0 commit comments

Comments
 (0)