| 
     
      
      
      From: <kp...@us...> - 2021-03-13 12:51:10
      
     
   | 
Revision: 25427
          http://sourceforge.net/p/jedit/svn/25427
Author:   kpouer
Date:     2021-03-13 12:51:06 +0000 (Sat, 13 Mar 2021)
Log Message:
-----------
add missing Override annotation
Modified Paths:
--------------
    jEdit/trunk/org/gjt/sp/jedit/JARClassLoader.java
Modified: jEdit/trunk/org/gjt/sp/jedit/JARClassLoader.java
===================================================================
--- jEdit/trunk/org/gjt/sp/jedit/JARClassLoader.java	2021-03-13 09:34:17 UTC (rev 25426)
+++ jEdit/trunk/org/gjt/sp/jedit/JARClassLoader.java	2021-03-13 12:51:06 UTC (rev 25427)
@@ -76,6 +76,7 @@
 	/**
 	 * @exception ClassNotFoundException if the class could not be found
 	 */
+	@Override
 	public Class loadClass(String clazz, boolean resolveIt)
 		throws ClassNotFoundException
 	{
@@ -125,6 +126,7 @@
 	} //}}}
 
 	//{{{ getResourceAsStream() method
+	@Override
 	public InputStream getResourceAsStream(String name)
 	{
 		try
@@ -162,6 +164,7 @@
 	 * overriding getResource() because we want to search FIRST in this
 	 * ClassLoader, then the parent, the path, etc.
 	 */
+	@Override
 	public URL getResource(String name)
 	{
 		try
@@ -273,11 +276,13 @@
 				this.element = element;
 			}
 
+			@Override
 			public boolean hasMoreElements()
 			{
 				return element != null;
 			}
 
+			@Override
 			public URL nextElement()
 			{
 				if(element != null)
@@ -297,6 +302,7 @@
 
 	//{{{ finalize() method
 	// TODO: 'finalize' is deprecated as of Java 9
+	@Override
 	@SuppressWarnings("deprecation")
 	protected void finalize()
 	{
@@ -377,10 +383,10 @@
 
 	private static int INDEX;
 	private static int live;
-	private static Map<String, Object> classHash = new Hashtable<String, Object>();
-	private static Map<String, Object> resourcesHash = new HashMap<String, Object>();
+	private static final Map<String, Object> classHash = new Hashtable<>();
+	private static final Map<String, Object> resourcesHash = new HashMap<>();
 
-	private int id;
+	private final int id;
 	private boolean delegateFirst;
 	private PluginJAR jar;
 
@@ -488,7 +494,7 @@
 		Attributes ma = mf.getMainAttributes();
 
 		URL sealBase = null;
-		if (Boolean.valueOf(getMfValue(sa, ma, Name.SEALED)))
+		if (Boolean.parseBoolean(getMfValue(sa, ma, Name.SEALED)))
 		{
 			try
 			{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 |