Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileBuffersForFilesInLinkedFolders.java2
-rw-r--r--org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileBuffersForWorkspaceFiles.java2
-rw-r--r--org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileStoreFileBuffersForWorkspaceFiles.java2
-rw-r--r--org.eclipse.search/new search/org/eclipse/search/core/text/TextSearchScope.java2
-rw-r--r--org.eclipse.search/new search/org/eclipse/search2/internal/ui/MatchFilterSelectionDialog.java2
-rw-r--r--org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java4
-rw-r--r--org.eclipse.ui.editors/src/org/eclipse/ui/internal/texteditor/SourceViewerInformationControl.java2
7 files changed, 8 insertions, 8 deletions
diff --git a/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileBuffersForFilesInLinkedFolders.java b/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileBuffersForFilesInLinkedFolders.java
index 12a69eec6..187a75af6 100644
--- a/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileBuffersForFilesInLinkedFolders.java
+++ b/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileBuffersForFilesInLinkedFolders.java
@@ -112,7 +112,7 @@ public class FileBuffersForFilesInLinkedFolders extends FileBufferFunctions {
assertTrue(fileStore.fetchInfo().exists());
OutputStream out= fileStore.openOutputStream(EFS.NONE, null);
try {
- out.write(new String("Changed content of file in linked folder").getBytes());
+ out.write("Changed content of file in linked folder".getBytes());
out.flush();
} catch (IOException x) {
fail();
diff --git a/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileBuffersForWorkspaceFiles.java b/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileBuffersForWorkspaceFiles.java
index 8b0c362c9..4a9bc2ddd 100644
--- a/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileBuffersForWorkspaceFiles.java
+++ b/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileBuffersForWorkspaceFiles.java
@@ -91,7 +91,7 @@ public class FileBuffersForWorkspaceFiles extends FileBufferFunctions {
assertTrue(fileStore.fetchInfo().exists());
OutputStream out= fileStore.openOutputStream(EFS.NONE, null);
try {
- out.write(new String("Changed content of workspace file").getBytes());
+ out.write("Changed content of workspace file".getBytes());
out.flush();
} catch (IOException x) {
fail();
diff --git a/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileStoreFileBuffersForWorkspaceFiles.java b/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileStoreFileBuffersForWorkspaceFiles.java
index 79ed47383..d52e6f75b 100644
--- a/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileStoreFileBuffersForWorkspaceFiles.java
+++ b/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileStoreFileBuffersForWorkspaceFiles.java
@@ -91,7 +91,7 @@ public class FileStoreFileBuffersForWorkspaceFiles extends FileBufferFunctions {
assertTrue(fileStore.fetchInfo().exists());
OutputStream out= fileStore.openOutputStream(EFS.NONE, null);
try {
- out.write(new String("Changed content of workspace file").getBytes());
+ out.write("Changed content of workspace file".getBytes());
out.flush();
} catch (IOException x) {
fail();
diff --git a/org.eclipse.search/new search/org/eclipse/search/core/text/TextSearchScope.java b/org.eclipse.search/new search/org/eclipse/search/core/text/TextSearchScope.java
index b91cb5253..fddbf7295 100644
--- a/org.eclipse.search/new search/org/eclipse/search/core/text/TextSearchScope.java
+++ b/org.eclipse.search/new search/org/eclipse/search/core/text/TextSearchScope.java
@@ -46,7 +46,7 @@ public abstract class TextSearchScope {
* @return a scope the search scope
*/
public static TextSearchScope newSearchScope(IResource[] rootResources, Pattern fileNamePattern, boolean visitDerivedResources) {
- FileNamePatternSearchScope scope= FileNamePatternSearchScope.newSearchScope(new String(), rootResources, visitDerivedResources);
+ FileNamePatternSearchScope scope= FileNamePatternSearchScope.newSearchScope("", rootResources, visitDerivedResources); //$NON-NLS-1$
scope.setFileNamePattern(fileNamePattern);
return scope;
}
diff --git a/org.eclipse.search/new search/org/eclipse/search2/internal/ui/MatchFilterSelectionDialog.java b/org.eclipse.search/new search/org/eclipse/search2/internal/ui/MatchFilterSelectionDialog.java
index 79340fd4f..519c1439f 100644
--- a/org.eclipse.search/new search/org/eclipse/search2/internal/ui/MatchFilterSelectionDialog.java
+++ b/org.eclipse.search/new search/org/eclipse/search2/internal/ui/MatchFilterSelectionDialog.java
@@ -234,7 +234,7 @@ public class MatchFilterSelectionDialog extends StatusDialog {
if (selectedElement != null)
fDescription.setText(((MatchFilter) selectedElement).getDescription());
else
- fDescription.setText(new String());
+ fDescription.setText(""); //$NON-NLS-1$
}
private void performFilterListCheckStateChanged() {
diff --git a/org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java b/org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java
index 8942085da..bb3dcccba 100644
--- a/org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java
+++ b/org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java
@@ -369,7 +369,7 @@ public class TextSearchVisitor {
// methods to the TextSearchJob class.
IProgressMonitor monitor= job.getMonitor();
ReusableMatchAccess matchAccess= job.getReusableMatchAccess();
- Matcher matcher= fSearchPattern.pattern().length() == 0 ? null : fSearchPattern.matcher(new String());
+ Matcher matcher= fSearchPattern.pattern().length() == 0 ? null : fSearchPattern.matcher(""); //$NON-NLS-1$
FileCharSequenceProvider fileCharSequenceProvider= new FileCharSequenceProvider();
try {
@@ -484,7 +484,7 @@ public class TextSearchVisitor {
}
}
} finally {
- matchAccess.initialize(null, 0, 0, new String()); // clear references
+ matchAccess.initialize(null, 0, 0, ""); // clear references //$NON-NLS-1$
}
}
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/texteditor/SourceViewerInformationControl.java b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/texteditor/SourceViewerInformationControl.java
index d298c3afb..eef0739fc 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/texteditor/SourceViewerInformationControl.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/texteditor/SourceViewerInformationControl.java
@@ -384,7 +384,7 @@ class SourceViewerInformationControl implements IInformationControl, IInformatio
GC gc= new GC(widget);
gc.setFont(widget.getFont());
int maxWidth= 0;
- String content= new String();
+ String content= ""; //$NON-NLS-1$
try {
for (int i= 0; i <= last; i++) {

Back to the top