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 f702f38d0 Use |=
f702f38d0 is described below

commit f702f38d086a4ec783c57dc6bcf27b2d3fed6d3c
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Mon Jan 15 10:10:16 2024 -0500

    Use |=
    
    (note << has precedence)
---
 .../org/apache/commons/compress/harmony/pack200/ClassBands.java     | 6 +++---
 1 file changed, 3 insertions(+), 3 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 d7e6a9b00..ea458759a 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
@@ -333,7 +333,7 @@ public class ClassBands extends BandSet {
         }
 //        if ((flags & Opcodes.ACC_DEPRECATED) != 0) { // ASM uses (1<<17) 
flag for deprecated
 //            flags &= ~Opcodes.ACC_DEPRECATED;
-//            flags = flags | (1 << 20);
+//            flags |= (1 << 20);
 //        }
         if (signature != null) {
             class_flags[index] |= 1 << 19;
@@ -392,7 +392,7 @@ public class ClassBands extends BandSet {
         }
         if ((flags & Opcodes.ACC_DEPRECATED) != 0) { // ASM uses (1<<17) flag 
for deprecated
             flags &= ~Opcodes.ACC_DEPRECATED;
-            flags = flags | 1 << 20;
+            flags |= 1 << 20;
         }
         if (value != null) {
             fieldConstantValueKQ.add(cpBands.getConstant(value));
@@ -494,7 +494,7 @@ public class ClassBands extends BandSet {
         }
         if ((flags & Opcodes.ACC_DEPRECATED) != 0) { // ASM uses (1<<17) flag 
for deprecated
             flags &= ~Opcodes.ACC_DEPRECATED;
-            flags = flags | 1 << 20;
+            flags |= 1 << 20;
         }
         tempMethodFlags.add(Long.valueOf(flags));
         numMethodArgs = countArgs(desc);

Reply via email to