You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2013/12/31 23:07:00 UTC

svn commit: r1554578 - in /commons/proper/bcel/trunk/src/main/java/org/apache/bcel: classfile/ConstantUtf8.java generic/ObjectType.java

Author: ggregory
Date: Tue Dec 31 22:06:59 2013
New Revision: 1554578

URL: http://svn.apache.org/r1554578
Log:
Add missing '@Override' annotations.

Modified:
    commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/ConstantUtf8.java
    commons/proper/bcel/trunk/src/main/java/org/apache/bcel/generic/ObjectType.java

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/ConstantUtf8.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/ConstantUtf8.java?rev=1554578&r1=1554577&r2=1554578&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/ConstantUtf8.java (original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/ConstantUtf8.java Tue Dec 31 22:06:59 2013
@@ -54,6 +54,7 @@ public final class ConstantUtf8 extends 
     static {
         if (BCEL_STATISTICS) {
             Runtime.getRuntime().addShutdownHook(new Thread() {
+                @Override
                 public void run() {
                     System.err.println("Cache hit " + hits + "/" + considered +", "
                             + skipped + " skipped");
@@ -71,6 +72,7 @@ public final class ConstantUtf8 extends 
         considered++;
         if (cache == null)  {
             cache = new LinkedHashMap<String, ConstantUtf8>(INITIAL_CACHE_CAPACITY, 0.75f, true) {
+                @Override
                 protected boolean removeEldestEntry(Map.Entry<String, ConstantUtf8> eldest) {
                      return size() > MAX_CACHE_ENTRIES;
                 }

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/bcel/generic/ObjectType.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/bcel/generic/ObjectType.java?rev=1554578&r1=1554577&r2=1554578&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/bcel/generic/ObjectType.java (original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/bcel/generic/ObjectType.java Tue Dec 31 22:06:59 2013
@@ -44,6 +44,7 @@ public class ObjectType extends Referenc
             cache = new LinkedHashMap<String, ObjectType>(INITIAL_CACHE_CAPACITY, 0.75f, true) {
 
 
+            @Override
             protected boolean removeEldestEntry(Map.Entry<String, ObjectType> eldest) {
                return size() > MAX_CACHE_ENTRIES;
             }