Return-Path: X-Original-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7E72DD6A0 for ; Mon, 23 Jul 2012 10:41:35 +0000 (UTC) Received: (qmail 21040 invoked by uid 500); 23 Jul 2012 10:41:35 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 21005 invoked by uid 500); 23 Jul 2012 10:41:35 -0000 Mailing-List: contact oak-dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-dev@jackrabbit.apache.org Received: (qmail 20986 invoked by uid 99); 23 Jul 2012 10:41:34 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jul 2012 10:41:34 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id A279E140CCD for ; Mon, 23 Jul 2012 10:41:34 +0000 (UTC) Date: Mon, 23 Jul 2012 10:41:33 +0000 (UTC) From: "Thomas Mueller (JIRA)" To: oak-dev@jackrabbit.apache.org Message-ID: <234404376.90485.1343040094670.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Created] (OAK-202) Simplify the code when possible MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Thomas Mueller created OAK-202: ---------------------------------- Summary: Simplify the code when possible Key: OAK-202 URL: https://issues.apache.org/jira/browse/OAK-202 Project: Jackrabbit Oak Issue Type: Improvement Reporter: Thomas Mueller Priority: Minor Sometimes it's possible to simplify the code, for example: - making methods static when possible, so a reader knows the method doesn't change the state of an object - the "else" is unnecessary if the "if" block always returns -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira