Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/source/DefaultAnnotationHover.java6
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/source/JFaceTextMessages.java2
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/source/OverviewRuler.java2
3 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/DefaultAnnotationHover.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/DefaultAnnotationHover.java
index 4e05e1569..14373b0b9 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/DefaultAnnotationHover.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/DefaultAnnotationHover.java
@@ -90,7 +90,7 @@ public class DefaultAnnotationHover implements IAnnotationHover {
}
if (fShowLineNumber && lineNumber > -1)
- return JFaceTextMessages.getFormattedString("DefaultAnnotationHover.lineNumber", new String[] { Integer.toString(lineNumber + 1) }); //$NON-NLS-1$
+ return JFaceTextMessages.getFormattedString("DefaultAnnotationHover.lineNumber", Integer.toString(lineNumber + 1)); //$NON-NLS-1$
return null;
}
@@ -138,7 +138,7 @@ public class DefaultAnnotationHover implements IAnnotationHover {
while (e.hasNext()) {
buffer.append('\n');
String listItemText= e.next();
- buffer.append(JFaceTextMessages.getFormattedString("DefaultAnnotationHover.listItem", new String[] { listItemText })); //$NON-NLS-1$
+ buffer.append(JFaceTextMessages.getFormattedString("DefaultAnnotationHover.listItem", listItemText)); //$NON-NLS-1$
}
return buffer.toString();
}
@@ -170,7 +170,7 @@ public class DefaultAnnotationHover implements IAnnotationHover {
if (value instanceof List) {
@SuppressWarnings("unchecked")
List<Object> messages= (List<Object>) value;
- if (messages.contains(message))
+ if (messages.contains(message))
return true;
messages.add(message);
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/JFaceTextMessages.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/JFaceTextMessages.java
index 39c19d84e..f2ce4f575 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/JFaceTextMessages.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/JFaceTextMessages.java
@@ -57,7 +57,7 @@ class JFaceTextMessages {
* @return the formatted string
* @since 3.0
*/
- public static String getFormattedString(String key, Object[] args) {
+ public static String getFormattedString(String key, Object... args) {
String format= null;
try {
format= fgResourceBundle.getString(key);
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/OverviewRuler.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/OverviewRuler.java
index 63946a32e..5cccb5d81 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/OverviewRuler.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/OverviewRuler.java
@@ -1528,7 +1528,7 @@ public class OverviewRuler implements IOverviewRulerExtension, IOverviewRuler {
if (overview.length() > 0) {
overview.append("\n"); //$NON-NLS-1$
}
- overview.append(JFaceTextMessages.getFormattedString("OverviewRulerHeader.toolTipTextEntry", new Object[] {annotationTypeLabel, Integer.valueOf(count)})); //$NON-NLS-1$
+ overview.append(JFaceTextMessages.getFormattedString("OverviewRulerHeader.toolTipTextEntry", annotationTypeLabel, Integer.valueOf(count))); //$NON-NLS-1$
}
}

Back to the top