Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 35909D5B3 for ; Mon, 27 Aug 2012 13:36:35 +0000 (UTC) Received: (qmail 61335 invoked by uid 500); 27 Aug 2012 13:36:34 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 61245 invoked by uid 500); 27 Aug 2012 13:36:34 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 61235 invoked by uid 99); 27 Aug 2012 13:36:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Aug 2012 13:36:34 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of garydgregory@gmail.com designates 209.85.210.43 as permitted sender) Received: from [209.85.210.43] (HELO mail-pz0-f43.google.com) (209.85.210.43) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Aug 2012 13:36:28 +0000 Received: by daku36 with SMTP id u36so3029418dak.30 for ; Mon, 27 Aug 2012 06:36:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=F4GA6Q4VD4mmtpLn5rZaN7oI794QJQhMn1ghkCYP9jM=; b=xMxAf3+DWfB5yjgLTGeZyOhUH+HERQulnsdFkD9yvcoaUu/H+n2aonpqZagAdvXi9K g8rQp4wAD3pZcA4jtjNYU2p87acoik1zuNBVJSrhc/DiFCT6iOAqQ7ClzlVyvD01al6k QUSe3fJoWGL6f4TwDqMHc9RDL792eFOcKnA0A460GaxAFq1G8Jk6luRtPBFfbTCMqfPx 4/sODBE6TaeqUTRyHna9s7ipR+qbvrQByrF5QCQPy/UUJ6WM57MriBhYv/SEnqwVRvF3 3OALaKWlHNdUKENpu4TCuTJ6kQ+md+CTD2t5/hlJ1S/SHnwSxrgRQRZEDBwsW9FBINmI PYqw== MIME-Version: 1.0 Received: by 10.68.213.234 with SMTP id nv10mr34406392pbc.56.1346074567332; Mon, 27 Aug 2012 06:36:07 -0700 (PDT) Received: by 10.68.228.73 with HTTP; Mon, 27 Aug 2012 06:36:07 -0700 (PDT) Date: Mon, 27 Aug 2012 09:36:07 -0400 Message-ID: Subject: [codec] Vacuous bit mask operation on integer value in UnixCrypt From: Gary Gregory To: Commons Developers List Content-Type: multipart/alternative; boundary=e89a8fb207806d52c504c83f68cc --e89a8fb207806d52c504c83f68cc Content-Type: text/plain; charset=UTF-8 Hi All: FindBugs says the following a couple of times for UnixCrypt: "Vacuous bit mask operation on integer value (INT_VACUOUS_BIT_OPERATION) This is an integer bit operation (and, or, or exclusive or) that doesn't do any useful work (e.g., v & 0xffffffff)." This makes me wonder if the whole class is correct in the first place and if/how/why these ops got in there. Was this translated (incorrectly) from JetSpeed's implementation? Where the types (int vs longs?) in JetSpeed different? Where did JetSpeed get this implementation? Gary -- E-Mail: garydgregory@gmail.com | ggregory@apache.org JUnit in Action, 2nd Ed: http://bit.ly/ECvg0 Spring Batch in Action: http://bit.ly/bqpbCK Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory --e89a8fb207806d52c504c83f68cc--