summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2007-11-01 20:06:54 +0000
committerAndrew John Hughes <gnu_andrew@member.fsf.org>2007-11-01 20:06:54 +0000
commit74150ce539f8793b96b5e499ced499ed04e757e8 (patch)
tree347730ae056d70ad7a8ec7c00752137762e957a3 /gnu
parentfb07abfc4f9d2773eb757121e26e4036e005faaa (diff)
downloadclasspath-74150ce539f8793b96b5e499ced499ed04e757e8.tar.gz
2007-11-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
* gnu/java/awt/java2d/ScanlineCoverage.java, * gnu/javax/net/ssl/provider/ServerHandshake.java: Fix non-ASCII characters in the Javadoc comments. * gnu/java/lang/management/BeanImpl.java, * gnu/javax/management/Server.java, * gnu/xml/pipeline/EventFilter.java, * java/awt/AWTKeyStroke.java, * java/beans/DefaultPersistenceDelegate.java, * java/beans/EventHandler.java, * java/io/ObjectStreamClass.java, * java/lang/Class.java, * java/lang/reflect/Proxy.java, * javax/management/NotificationBroadcasterSupport.java, * javax/management/StandardMBean.java, * javax/swing/TransferHandler.java: Fix warnings from use of varargs methods.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/java/awt/java2d/ScanlineCoverage.java2
-rw-r--r--gnu/java/lang/management/BeanImpl.java4
-rw-r--r--gnu/javax/management/Server.java8
-rw-r--r--gnu/javax/net/ssl/provider/ServerHandshake.java6
-rw-r--r--gnu/xml/pipeline/EventFilter.java4
5 files changed, 12 insertions, 12 deletions
diff --git a/gnu/java/awt/java2d/ScanlineCoverage.java b/gnu/java/awt/java2d/ScanlineCoverage.java
index 6db7fb019..deb603bcb 100644
--- a/gnu/java/awt/java2d/ScanlineCoverage.java
+++ b/gnu/java/awt/java2d/ScanlineCoverage.java
@@ -157,7 +157,7 @@ public final class ScanlineCoverage
* A data object that carries information about pixel coverage on a scanline.
* The data consists of a starting X position on the scanline, the
* length of the range in pixels and the actual coverage value.
-´ */
+ **/
public static final class Range
{
/**
diff --git a/gnu/java/lang/management/BeanImpl.java b/gnu/java/lang/management/BeanImpl.java
index f751d0ce6..26c42ef6a 100644
--- a/gnu/java/lang/management/BeanImpl.java
+++ b/gnu/java/lang/management/BeanImpl.java
@@ -272,7 +272,7 @@ public class BeanImpl
Method getter = null;
try
{
- getter = vClass.getMethod("get" + field, null);
+ getter = vClass.getMethod("get" + field);
}
catch (NoSuchMethodException e)
{
@@ -280,7 +280,7 @@ public class BeanImpl
}
try
{
- values.add(getter.invoke(value, null));
+ values.add(getter.invoke(value));
}
catch (IllegalAccessException e)
{
diff --git a/gnu/javax/management/Server.java b/gnu/javax/management/Server.java
index 616854e95..1832c4fa4 100644
--- a/gnu/javax/management/Server.java
+++ b/gnu/javax/management/Server.java
@@ -229,8 +229,8 @@ public class Server
if (name != null)
{
Object bean = getBean(name);
- Method method = bean.getClass().getMethod("getMBeanInfo", null);
- info = (MBeanInfo) method.invoke(bean, null);
+ Method method = bean.getClass().getMethod("getMBeanInfo");
+ info = (MBeanInfo) method.invoke(bean);
}
sm.checkPermission(new MBeanPermission((info == null) ?
null : info.getClassName(),
@@ -1031,8 +1031,8 @@ public class Server
checkSecurity(name, null, "getMBeanInfo");
try
{
- Method method = bean.getClass().getMethod("getMBeanInfo", null);
- return (MBeanInfo) method.invoke(bean, null);
+ Method method = bean.getClass().getMethod("getMBeanInfo");
+ return (MBeanInfo) method.invoke(bean);
}
catch (NoSuchMethodException e)
{
diff --git a/gnu/javax/net/ssl/provider/ServerHandshake.java b/gnu/javax/net/ssl/provider/ServerHandshake.java
index 300012a4b..e30f04241 100644
--- a/gnu/javax/net/ssl/provider/ServerHandshake.java
+++ b/gnu/javax/net/ssl/provider/ServerHandshake.java
@@ -775,7 +775,7 @@ class ServerHandshake extends AbstractHandshake
// outgoing buffer. This isn't that great because we'd need to
// store and copy things unnecessarily.
//
- // 2. Build outgoing handshake objects “virtually,” that is, store them
+ // 2. Build outgoing handshake objects 'virtually', that is, store them
// as collections of objects, then compute the length, and then write
// them to a buffer, instead of making the objects views on
// ByteBuffers for both input and output. This would complicate the
@@ -784,7 +784,7 @@ class ServerHandshake extends AbstractHandshake
// pretty OK), and we still need to figure out how exactly to chunk
// those objects across record boundaries.
//
- // 3. Try to build these objects on the buffer we’re given, but detect
+ // 3. Try to build these objects on the buffer we're given, but detect
// when we run out of space in the output buffer, and split the
// overflow message. This sounds like the best, but also probably
// the hardest to code.
@@ -1374,4 +1374,4 @@ output_loop:
setupSecurityParameters(keys, false, engine, compression);
}
}
-} \ No newline at end of file
+}
diff --git a/gnu/xml/pipeline/EventFilter.java b/gnu/xml/pipeline/EventFilter.java
index a14fb340f..af2113f97 100644
--- a/gnu/xml/pipeline/EventFilter.java
+++ b/gnu/xml/pipeline/EventFilter.java
@@ -187,14 +187,14 @@ public class EventFilter
Method m = null;
try {
- m = Thread.class.getMethod("getContextClassLoader", null);
+ m = Thread.class.getMethod("getContextClassLoader");
} catch (NoSuchMethodException e) {
// Assume that we are running JDK 1.1, use the current ClassLoader
return EventFilter.class.getClassLoader();
}
try {
- return (ClassLoader) m.invoke(Thread.currentThread(), null);
+ return (ClassLoader) m.invoke(Thread.currentThread());
} catch (IllegalAccessException e) {
// assert(false)
throw new UnknownError(e.getMessage());