Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Typo in variable name

  • Loading branch information...
commit 093ea34188f06b342afd32a929cd783d9ac565f7 1 parent 99640ed
@Sanne Sanne authored
View
6 ...-search-engine/src/main/java/org/hibernate/search/engine/spi/AbstractDocumentBuilder.java
@@ -119,7 +119,7 @@
private final XClass beanXClass;
protected final String beanXClassName;
protected final Class<?> beanClass;
- protected final InstanceInitializer instanceInitalizer;
+ protected final InstanceInitializer instanceInitializer;
private Set<Class<?>> mappedSubclasses = new HashSet<Class<?>>();
private int level = 0;
private int maxLevel = Integer.MAX_VALUE;
@@ -157,7 +157,7 @@ public AbstractDocumentBuilder(XClass xClass, ConfigContext context, Similarity
final Version luceneVersion = context.getLuceneMatchVersion();
this.passThroughAnalyzer = new PassThroughAnalyzer( luceneVersion );
- this.instanceInitalizer = instanceInitializer;
+ this.instanceInitializer = instanceInitializer;
this.entityState = EntityState.CONTAINED_IN_ONLY;
this.beanXClass = xClass;
this.beanXClassName = xClass.getName();
@@ -278,7 +278,7 @@ protected void addToScopedAnalyzer(String fieldName, Analyzer analyzer, Field.In
public void appendContainedInWorkForInstance(Object instance, WorkPlan workplan, DepthValidator currentDepth) {
for ( int i = 0; i < metadata.containedInGetters.size(); i++ ) {
XMember member = metadata.containedInGetters.get( i );
- Object unproxiedInstance = instanceInitalizer.unproxy( instance );
+ Object unproxiedInstance = instanceInitializer.unproxy( instance );
DepthValidator depth = updateDepth( unproxiedInstance, member, currentDepth );
depth.increaseDepth();
View
8 ...ch-engine/src/main/java/org/hibernate/search/engine/spi/DocumentBuilderIndexedEntity.java
@@ -370,10 +370,10 @@ public void addWorkToQueue(Class<T> entityClass, T entity, Serializable id, bool
queue.add( new DeleteLuceneWork( id, idInString, entityClass ) );
}
else if ( add && !delete) {
- queue.add( createAddWork( entityClass, entity, id, idInString, this.instanceInitalizer, contextualBridge ) );
+ queue.add( createAddWork( entityClass, entity, id, idInString, this.instanceInitializer, contextualBridge ) );
}
else if ( add && delete ) {
- queue.add( createUpdateWork( entityClass, entity, id, idInString, this.instanceInitalizer, contextualBridge ) );
+ queue.add( createUpdateWork( entityClass, entity, id, idInString, this.instanceInitializer, contextualBridge ) );
}
}
@@ -450,7 +450,7 @@ public Document getDocument(T instance, Serializable id, Map<String, String> fie
}
Document doc = new Document();
- this.instanceInitalizer.getClass( instance );
+ this.instanceInitializer.getClass( instance );
final Class<?> entityType = objectInitializer.getClass( instance );
doc.setBoost( getMetadata().getClassBoost( instance ) );
@@ -731,7 +731,7 @@ public Serializable getId(Object entity) {
if ( entity == null || idGetter == null || idProvided ) {
throw new IllegalStateException( "Cannot guess id from entity" );
}
- Object unproxiedEntity = this.instanceInitalizer.unproxy( entity );
+ Object unproxiedEntity = this.instanceInitializer.unproxy( entity );
return (Serializable) ReflectionHelper.getMemberValue( unproxiedEntity, idGetter );
}
Please sign in to comment.
Something went wrong with that request. Please try again.