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 2022/11/29 23:37:01 UTC

[commons-compress] branch master updated: Comment out dead store code

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git


The following commit(s) were added to refs/heads/master by this push:
     new 793b4db0 Comment out dead store code
793b4db0 is described below

commit 793b4db0a497defcc1232bf66d63fa8ae8cef057
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Nov 29 18:36:57 2022 -0500

    Comment out dead store code
---
 .../apache/commons/compress/harmony/pack200/ClassBands.java    | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/main/java/org/apache/commons/compress/harmony/pack200/ClassBands.java b/src/main/java/org/apache/commons/compress/harmony/pack200/ClassBands.java
index 09b94152..593c59bd 100644
--- a/src/main/java/org/apache/commons/compress/harmony/pack200/ClassBands.java
+++ b/src/main/java/org/apache/commons/compress/harmony/pack200/ClassBands.java
@@ -195,7 +195,7 @@ public class ClassBands extends BandSet {
 		}
 	}
 
-	public void addClass(final int major, int flags, final String className, final String signature,
+	public void addClass(final int major, final int flags, final String className, final String signature,
 			final String superName, final String[] interfaces) {
 		class_this[index] = cpBands.getCPClass(className);
 		class_super[index] = cpBands.getCPClass(superName);
@@ -209,10 +209,10 @@ public class ClassBands extends BandSet {
 			cpBands.addCPUtf8("Synthetic");
 			anySyntheticClasses = true;
 		}
-		if ((flags & Opcodes.ACC_DEPRECATED) != 0) { // ASM uses (1<<17) flag for deprecated
-			flags = flags & ~Opcodes.ACC_DEPRECATED;
-			flags = flags | (1 << 20);
-		}
+//		if ((flags & Opcodes.ACC_DEPRECATED) != 0) { // ASM uses (1<<17) flag for deprecated
+//			flags = flags & ~Opcodes.ACC_DEPRECATED;
+//			flags = flags | (1 << 20);
+//		}
 		if (signature != null) {
 			class_flags[index] |= (1 << 19);
 			classSignature.add(cpBands.getCPSignature(signature));