From 62851d0af30cdb0c54046627585451a468aacd2a Mon Sep 17 00:00:00 2001 From: nickl- Date: Mon, 30 Oct 2017 20:37:23 +0200 Subject: Source walk/Spring clean/Parameterize/Enhance et.al. The following were applied during multiple itterations through the source. * Parameterize raw types. * Mark unused members. * Annotate override and deprecated methods. * Convert loops to enhance for loop. * Remove redundant else statements. * Widening collection type references. * Optimize code for improved readability. * Squash compiler warnings. * Identify smells. --- src/main/javassist/bytecode/DeprecatedAttribute.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/javassist/bytecode/DeprecatedAttribute.java') diff --git a/src/main/javassist/bytecode/DeprecatedAttribute.java b/src/main/javassist/bytecode/DeprecatedAttribute.java index f55acebd..eaf39ef6 100644 --- a/src/main/javassist/bytecode/DeprecatedAttribute.java +++ b/src/main/javassist/bytecode/DeprecatedAttribute.java @@ -50,7 +50,8 @@ public class DeprecatedAttribute extends AttributeInfo { * @param newCp the constant pool table used by the new copy. * @param classnames should be null. */ - public AttributeInfo copy(ConstPool newCp, Map classnames) { + @Override + public AttributeInfo copy(ConstPool newCp, Map classnames) { return new DeprecatedAttribute(newCp); } } -- cgit v1.2.3