From 6e14a97ccf2f4ae20af7e65cc68b5393abd09a67 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Fri, 1 Mar 2013 08:32:40 +0000 Subject: [PATCH] SOLR-4517: make FieldType.properties protected for subclassing git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1451521 13f79535-47bb-0310-9956-ffa450edef68 --- solr/core/src/java/org/apache/solr/schema/FieldType.java | 4 ++-- solr/core/src/java/org/apache/solr/schema/SchemaField.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/solr/core/src/java/org/apache/solr/schema/FieldType.java b/solr/core/src/java/org/apache/solr/schema/FieldType.java index b94caf7d781..7289c0d8473 100644 --- a/solr/core/src/java/org/apache/solr/schema/FieldType.java +++ b/solr/core/src/java/org/apache/solr/schema/FieldType.java @@ -81,7 +81,7 @@ public abstract class FieldType extends FieldProperties { protected int trueProperties; /** properties explicitly set to false */ protected int falseProperties; - int properties; + protected int properties; /** Returns true if fields of this type should be tokenized */ @@ -128,7 +128,7 @@ public abstract class FieldType extends FieldProperties { } // Handle additional arguments... - void setArgs(IndexSchema schema, Map args) { + protected void setArgs(IndexSchema schema, Map args) { // default to STORED, INDEXED, OMIT_TF_POSITIONS and MULTIVALUED depending on schema version properties = (STORED | INDEXED); float schemaVersion = schema.getVersion(); diff --git a/solr/core/src/java/org/apache/solr/schema/SchemaField.java b/solr/core/src/java/org/apache/solr/schema/SchemaField.java index 793374c0dd7..15cce7f1c20 100644 --- a/solr/core/src/java/org/apache/solr/schema/SchemaField.java +++ b/solr/core/src/java/org/apache/solr/schema/SchemaField.java @@ -75,7 +75,7 @@ public final class SchemaField extends FieldProperties { public String getName() { return name; } public FieldType getType() { return type; } - int getProperties() { return properties; } + public int getProperties() { return properties; } public boolean indexed() { return (properties & INDEXED)!=0; } public boolean stored() { return (properties & STORED)!=0; }