Return-Path: X-Original-To: apmail-jackrabbit-oak-commits-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-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 D7F3A9FF5 for ; Mon, 23 Jul 2012 14:41:25 +0000 (UTC) Received: (qmail 77716 invoked by uid 500); 23 Jul 2012 14:41:25 -0000 Delivered-To: apmail-jackrabbit-oak-commits-archive@jackrabbit.apache.org Received: (qmail 77698 invoked by uid 500); 23 Jul 2012 14:41:25 -0000 Mailing-List: contact oak-commits-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-commits@jackrabbit.apache.org Delivered-To: mailing list oak-commits@jackrabbit.apache.org Received: (qmail 77687 invoked by uid 99); 23 Jul 2012 14:41:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jul 2012 14:41:25 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jul 2012 14:41:24 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 36198238897F; Mon, 23 Jul 2012 14:41:05 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1364654 - in /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/lucene: FieldFactory.java TermFactory.java Date: Mon, 23 Jul 2012 14:41:05 -0000 To: oak-commits@jackrabbit.apache.org From: mduerig@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120723144105.36198238897F@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mduerig Date: Mon Jul 23 14:41:04 2012 New Revision: 1364654 URL: http://svn.apache.org/viewvc?rev=1364654&view=rev Log: OAK-202 Simplify the code when possible use @code instead of Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/lucene/FieldFactory.java jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/lucene/TermFactory.java Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/lucene/FieldFactory.java URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/lucene/FieldFactory.java?rev=1364654&r1=1364653&r2=1364654&view=diff ============================================================================== --- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/lucene/FieldFactory.java (original) +++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/lucene/FieldFactory.java Mon Jul 23 14:41:04 2012 @@ -16,14 +16,15 @@ */ package org.apache.jackrabbit.oak.plugins.lucene; -import static org.apache.jackrabbit.oak.plugins.lucene.FieldNames.PATH; -import static org.apache.lucene.document.Field.Store.*; - import org.apache.lucene.document.Field; import org.apache.lucene.document.StringField; +import static org.apache.jackrabbit.oak.plugins.lucene.FieldNames.PATH; +import static org.apache.lucene.document.Field.Store.NO; +import static org.apache.lucene.document.Field.Store.YES; + /** - * FieldFactory is a factory for Field instances with + * {@code FieldFactory} is a factory for Field instances with * frequently used fields. */ public final class FieldFactory { Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/lucene/TermFactory.java URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/lucene/TermFactory.java?rev=1364654&r1=1364653&r2=1364654&view=diff ============================================================================== --- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/lucene/TermFactory.java (original) +++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/lucene/TermFactory.java Mon Jul 23 14:41:04 2012 @@ -19,7 +19,7 @@ package org.apache.jackrabbit.oak.plugin import org.apache.lucene.index.Term; /** - * TermFactory is a factory for Term instances with + * {@code TermFactory} is a factory for Term instances with * frequently used field names. */ public final class TermFactory { @@ -31,9 +31,9 @@ public final class TermFactory { } /** - * Creates a Term with the given path value and with a field + * Creates a Term with the given {@code path} value and with a field * name {@link FieldNames#PATH}. - * + * * @param path * the path. * @return the path term.