Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2A79118CE2 for ; Thu, 20 Aug 2015 17:33:14 +0000 (UTC) Received: (qmail 6703 invoked by uid 500); 20 Aug 2015 17:33:14 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 6627 invoked by uid 500); 20 Aug 2015 17:33:13 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 6618 invoked by uid 99); 20 Aug 2015 17:33:13 -0000 Received: from eris.apache.org (HELO hades.apache.org) (140.211.11.105) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Aug 2015 17:33:13 +0000 Received: from hades.apache.org (localhost [127.0.0.1]) by hades.apache.org (ASF Mail Server at hades.apache.org) with ESMTP id AD5DAAC04C5 for ; Thu, 20 Aug 2015 17:33:13 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1696828 - in /commons/proper/bcel/trunk: checkstyle.xml src/main/java/org/apache/commons/bcel6/classfile/Utility.java src/main/java/org/apache/commons/bcel6/util/CodeHTML.java Date: Thu, 20 Aug 2015 17:33:13 -0000 To: commits@commons.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20150820173313.AD5DAAC04C5@hades.apache.org> Author: sebb Date: Thu Aug 20 17:33:13 2015 New Revision: 1696828 URL: http://svn.apache.org/r1696828 Log: Checkstyle Modified: commons/proper/bcel/trunk/checkstyle.xml commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/Utility.java commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/util/CodeHTML.java Modified: commons/proper/bcel/trunk/checkstyle.xml URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/checkstyle.xml?rev=1696828&r1=1696827&r2=1696828&view=diff ============================================================================== --- commons/proper/bcel/trunk/checkstyle.xml (original) +++ commons/proper/bcel/trunk/checkstyle.xml Thu Aug 20 17:33:13 2015 @@ -149,7 +149,7 @@ limitations under the License. - + Modified: commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/Utility.java URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/Utility.java?rev=1696828&r1=1696827&r2=1696828&view=diff ============================================================================== --- commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/Utility.java (original) +++ commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/Utility.java Thu Aug 20 17:33:13 2015 @@ -187,10 +187,17 @@ public abstract class Utility { public static String codeToString( ByteSequence bytes, ConstantPool constant_pool, boolean verbose ) throws IOException { short opcode = (short) bytes.readUnsignedByte(); - int default_offset = 0, low, high, npairs; - int index, vindex, constant; - int[] match, jump_table; - int no_pad_bytes = 0, offset; + int default_offset = 0; + int low; + int high; + int npairs; + int index; + int vindex; + int constant; + int[] match; + int[] jump_table; + int no_pad_bytes = 0; + int offset; StringBuilder buf = new StringBuilder(Constants.OPCODE_NAMES[opcode]); /* Special case: Skip (0-3) padding bytes, i.e., the * following bytes are 4-byte-aligned Modified: commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/util/CodeHTML.java URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/util/CodeHTML.java?rev=1696828&r1=1696827&r2=1696828&view=diff ============================================================================== --- commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/util/CodeHTML.java (original) +++ commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/util/CodeHTML.java Thu Aug 20 17:33:13 2015 @@ -79,13 +79,19 @@ final class CodeHTML { */ private String codeToHTML( ByteSequence bytes, int method_number ) throws IOException { short opcode = (short) bytes.readUnsignedByte(); - StringBuilder buf; - String name, signature; - int default_offset = 0, low, high; - int index, class_index, vindex, constant; + String name; + String signature; + int default_offset = 0; + int low; + int high; + int index; + int class_index; + int vindex; + int constant; int[] jump_table; - int no_pad_bytes = 0, offset; - buf = new StringBuilder(256); + int no_pad_bytes = 0; + int offset; + StringBuilder buf = new StringBuilder(256); buf.append("").append(Constants.OPCODE_NAMES[opcode]).append(""); /* Special case: Skip (0-3) padding bytes, i.e., the * following bytes are 4-byte-aligned