Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9520F200B48 for ; Mon, 4 Jul 2016 04:14:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 939D2160A71; Mon, 4 Jul 2016 02:14:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B3BC5160A6B for ; Mon, 4 Jul 2016 04:14:07 +0200 (CEST) Received: (qmail 69489 invoked by uid 500); 4 Jul 2016 02:14:06 -0000 Mailing-List: contact commits-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@poi.apache.org Delivered-To: mailing list commits@poi.apache.org Received: (qmail 69480 invoked by uid 99); 4 Jul 2016 02:14:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jul 2016 02:14:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 641DDC0284 for ; Mon, 4 Jul 2016 02:14:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.374 X-Spam-Level: X-Spam-Status: No, score=0.374 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id hUzasZbu88oh for ; Mon, 4 Jul 2016 02:14:04 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 0C8985F295 for ; Mon, 4 Jul 2016 02:14:04 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 2C47EE0016 for ; Mon, 4 Jul 2016 02:14:03 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 28F893A023B for ; Mon, 4 Jul 2016 02:14:03 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1751195 - in /poi/trunk/src: java/org/apache/poi/util/BitField.java scratchpad/src/org/apache/poi/hwpf/usermodel/BorderCode.java Date: Mon, 04 Jul 2016 02:14:03 -0000 To: commits@poi.apache.org From: onealj@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160704021403.28F893A023B@svn01-us-west.apache.org> archived-at: Mon, 04 Jul 2016 02:14:08 -0000 Author: onealj Date: Mon Jul 4 02:14:02 2016 New Revision: 1751195 URL: http://svn.apache.org/viewvc?rev=1751195&view=rev Log: findbugs fixes Modified: poi/trunk/src/java/org/apache/poi/util/BitField.java poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/usermodel/BorderCode.java Modified: poi/trunk/src/java/org/apache/poi/util/BitField.java URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/util/BitField.java?rev=1751195&r1=1751194&r2=1751195&view=diff ============================================================================== --- poi/trunk/src/java/org/apache/poi/util/BitField.java (original) +++ poi/trunk/src/java/org/apache/poi/util/BitField.java Mon Jul 4 02:14:02 2016 @@ -126,8 +126,7 @@ public class BitField * value; the results of using it for a multi-bit field is to * determine whether *any* of its bits are set * - * @param holder the int data containing the bits we're interested - * in + * @param holder the int data containing the bits we're interested in * * @return true if any of the bits are set, else false */ @@ -142,8 +141,7 @@ public class BitField * isSet, in that all of the bits in a multi-bit set must be set * for this method to return true * - * @param holder the int data containing the bits we're interested - * in + * @param holder the int data containing the bits we're interested in * * @return true if all of the bits are set, else false */ @@ -156,8 +154,7 @@ public class BitField /** * Replace the bits with new values. * - * @param holder the int data containint the bits we're interested - * in + * @param holder the int data containing the bits we're interested in * @param value the new value for the specified bits * * @return the value of holder with the bits from the value @@ -172,8 +169,7 @@ public class BitField /** * Replace the bits with new values. * - * @param holder the short data containing the bits we're - * interested in + * @param holder the short data containing the bits we're interested in * @param value the new value for the specified bits * * @return the value of holder with the bits from the value @@ -188,8 +184,7 @@ public class BitField /** * Clear the bits. * - * @param holder the int data containing the bits we're interested - * in + * @param holder the int data containing the bits we're interested in * * @return the value of holder with the specified bits cleared * (set to 0) Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/usermodel/BorderCode.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/usermodel/BorderCode.java?rev=1751195&r1=1751194&r2=1751195&view=diff ============================================================================== --- poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/usermodel/BorderCode.java (original) +++ poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/usermodel/BorderCode.java Mon Jul 4 02:14:02 2016 @@ -95,73 +95,80 @@ public final class BorderCode implements return _dptLineWidth.getShortValue(_info); } + /** + * @param lineWidth the width of the line to set + */ public void setLineWidth(int lineWidth) { - _dptLineWidth.setValue(_info, lineWidth); + _info = _dptLineWidth.setShortValue(_info, (short)lineWidth); } /** * Border type code: - *
  • 0 none - *
  • 1 single - *
  • 2 thick - *
  • 3 double - *
  • 5 hairline - *
  • 6 dot - *
  • 7 dash large gap - *
  • 8 dot dash - *
  • 9 dot dot dash - *
  • 10 triple - *
  • 11 thin-thick small gap - *
  • 12 thick-thin small gap - *
  • 13 thin-thick-thin small gap - *
  • 14 thin-thick medium gap - *
  • 15 thick-thin medium gap - *
  • 16 thin-thick-thin medium gap - *
  • 17 thin-thick large gap - *
  • 18 thick-thin large gap - *
  • 19 thin-thick-thin large gap - *
  • 20 wave - *
  • 21 double wave - *
  • 22 dash small gap - *
  • 23 dash dot stroked - *
  • 24 emboss 3D - *
  • 25 engrave 3D - *
  • codes 64 - 230 represent border art types and are used only for page borders + *
      + *
    • 0 none
    • + *
    • 1 single
    • + *
    • 2 thick
    • + *
    • 3 double
    • + *
    • 5 hairline
    • + *
    • 6 dot
    • + *
    • 7 dash large gap
    • + *
    • 8 dot dash
    • + *
    • 9 dot dot dash
    • + *
    • 10 triple
    • + *
    • 11 thin-thick small gap
    • + *
    • 12 thick-thin small gap
    • + *
    • 13 thin-thick-thin small gap
    • + *
    • 14 thin-thick medium gap
    • + *
    • 15 thick-thin medium gap
    • + *
    • 16 thin-thick-thin medium gap
    • + *
    • 17 thin-thick large gap
    • + *
    • 18 thick-thin large gap
    • + *
    • 19 thin-thick-thin large gap
    • + *
    • 20 wave
    • + *
    • 21 double wave
    • + *
    • 22 dash small gap
    • + *
    • 23 dash dot stroked
    • + *
    • 24 emboss 3D
    • + *
    • 25 engrave 3D
    • + *
    • codes 64 - 230 represent border art types and are used only for page borders
    • + *
    */ public int getBorderType() { return _brcType.getShortValue(_info); } public void setBorderType(int borderType) { - _info = (short)_brcType.setValue(_info, borderType); + _info = _brcType.setShortValue(_info, (short)borderType); } /** * Color: - *
  • 0 Auto - *
  • 1 Black - *
  • 2 Blue - *
  • 3 Cyan - *
  • 4 Green - *
  • 5 Magenta - *
  • 6 Red - *
  • 7 Yellow - *
  • 8 White - *
  • 9 DkBlue - *
  • 10 DkCyan - *
  • 11 DkGreen - *
  • 12 DkMagenta - *
  • 13 DkRed - *
  • 14 DkYellow - *
  • 15 DkGray - *
  • 16 LtGray + *
      + *
    • 0 Auto
    • + *
    • 1 Black
    • + *
    • 2 Blue
    • + *
    • 3 Cyan
    • + *
    • 4 Green
    • + *
    • 5 Magenta
    • + *
    • 6 Red
    • + *
    • 7 Yellow
    • + *
    • 8 White
    • + *
    • 9 DkBlue
    • + *
    • 10 DkCyan
    • + *
    • 11 DkGreen
    • + *
    • 12 DkMagenta
    • + *
    • 13 DkRed
    • + *
    • 14 DkYellow
    • + *
    • 15 DkGray
    • + *
    • 16 LtGray
    • + *
    */ public short getColor() { return _ico.getShortValue(_info2); } public void setColor(short color) { - _info2 = (short)_ico.setValue(_info2, color); + _info2 = _ico.setShortValue(_info2, color); } /** --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org For additional commands, e-mail: commits-help@poi.apache.org