Return-Path: Delivered-To: apmail-lucene-mahout-dev-archive@locus.apache.org Received: (qmail 41167 invoked from network); 19 Apr 2008 01:15:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Apr 2008 01:15:34 -0000 Received: (qmail 62620 invoked by uid 500); 19 Apr 2008 01:15:34 -0000 Delivered-To: apmail-lucene-mahout-dev-archive@lucene.apache.org Received: (qmail 62596 invoked by uid 500); 19 Apr 2008 01:15:34 -0000 Mailing-List: contact mahout-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mahout-dev@lucene.apache.org Delivered-To: mailing list mahout-dev@lucene.apache.org Received: (qmail 62587 invoked by uid 99); 19 Apr 2008 01:15:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Apr 2008 18:15:34 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Apr 2008 01:14:59 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B0CE7234C0E2 for ; Fri, 18 Apr 2008 18:12:21 -0700 (PDT) Message-ID: <2100982120.1208567541723.JavaMail.jira@brutus> Date: Fri, 18 Apr 2008 18:12:21 -0700 (PDT) From: "Karl Wettin (JIRA)" To: mahout-dev@lucene.apache.org Subject: [jira] Commented: (MAHOUT-25) Minor bugs/issues from code inspection In-Reply-To: <180321913.1207364484288.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MAHOUT-25?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12590660#action_12590660 ] Karl Wettin commented on MAHOUT-25: ----------------------------------- bq. (Somebody holler if I am not following protocol) You could just hit close and skip the resolve step. It's used in for instance in organisations where a tester reports a bug, coder fix and hit resolve, tester confirms it's all good and close the issue. > Minor bugs/issues from code inspection > -------------------------------------- > > Key: MAHOUT-25 > URL: https://issues.apache.org/jira/browse/MAHOUT-25 > Project: Mahout > Issue Type: Bug > Components: Matrix > Affects Versions: 0.1 > Environment: All > Reporter: Sean Owen > Priority: Minor > Fix For: 0.1 > > Attachments: MAHOUT-25.patch > > > Hi all, just started checking out the code base to get familiar with it and turned loose IntelliJ on the code. It picked up a few possible issues I thought I'd highlight: > MatrixView:57 > for (int col = offset[COL]; col < offset[COL] + cardinality[COL]; row++) > Pretty sure that should be col++ at the end. > DenseMatrix:122 > Instances are compared uisng == instead of equals(). Doesn't matter if this is exactly the semantics you want, but if DenseMatrix ever defined a notion of equals() this wouldn't use it and might be a bug. Same in many other classes. > Canopy:146, 168 > pointStronglyBound = pointStronglyBound | (dist < t2); > Should this really be a non-shortcircuit, versus > pointStronglyBound = pointStronglyBound || (dist < t2); > or just > if (!pointStronglyBound) { > pointStronglyBound = dist < t2; > } > CanopyDriver:52,53 > String.valueOf(x) is a smidge faster than "" + x. > Actually I've got several more but they're less important, like redundant casts or utility classes without private constructors, etc. I can keep going here... want to help polish a few things but don't want to get overbearing. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.